Libraryless. Click here for Pure Java version (5335L/29K).
static JPanel withTopAndLeftMargin(int w default defaultMargin(), Component c) swing { JPanel p = marginPanel(); p.setBorder(BorderFactory.createEmptyBorder(w, w, 0, 0)); p.add(c); ret p; }
Began life as a copy of #1033801
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034730 | 
| Snippet name: | withTopAndLeftMargin | 
| Eternal ID of this version: | #1034730/6 | 
| Text MD5: | ebea18542247bb109f40b5613facac51 | 
| Transpilation MD5: | b80c6a2ade6b5fff6ad24213a680759f | 
| Author: | stefan | 
| Category: | javax / gui | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2022-03-07 21:16:09 | 
| Source code size: | 204 bytes / 6 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 412 / 558 | 
| Version history: | 5 change(s) | 
| Referenced in: | [show references] |