Libraryless. Click here for Pure Java version (5337L/29K).
1 | static JPanel withSideAndTopMargin(int w default defaultMargin(), Component c) { |
2 | ret swing(-> { |
3 | JPanel p = marginPanel(); |
4 | p.setBorder(BorderFactory.createEmptyBorder(w, w, 0, w)); |
5 | p.add(c); |
6 | ret p; |
7 | }); |
8 | } |
Began life as a copy of #1033800
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033801 |
Snippet name: | withSideAndTopMargin |
Eternal ID of this version: | #1033801/1 |
Text MD5: | 86adc2dbf1be6466bb842c38b644624c |
Transpilation MD5: | f87d6939608a960d47581dbdb253defa |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-05 04:44:17 |
Source code size: | 231 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 151 / 218 |
Referenced in: | [show references] |