Libraryless. Click here for Pure Java version (5337L/29K).
static JPanel withSideAndTopMargin(int w default defaultMargin(), Component c) { ret swing(-> { JPanel p = marginPanel(); p.setBorder(BorderFactory.createEmptyBorder(w, w, 0, w)); p.add(c); ret p; }); }
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: | 390 / 485 | 
| Referenced in: | [show references] |