static int withRightMargin_defaultWidth = 6; static JPanel withRightMargin(Component c) { ret withRightMargin(withRightMargin_defaultWidth, c); } static JPanel withRightMargin(final int w, final Component c) { ret swing(func -> JPanel { JPanel p = marginPanel(); p.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, w)); p.add(c); ret p; }); }
Began life as a copy of #1004959
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006306 |
Snippet name: | withRightMargin |
Eternal ID of this version: | #1006306/3 |
Text MD5: | b020db841457e7b83c5f1ca4d34623d5 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-29 03:05:00 |
Source code size: | 380 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 633 / 664 |
Version history: | 2 change(s) |
Referenced in: | [show references] |