1 | static int withRightMargin_defaultWidth = 6; |
2 | |
3 | static JPanel withRightMargin(Component c) { |
4 | ret withRightMargin(withRightMargin_defaultWidth, c); |
5 | } |
6 | |
7 | static JPanel withRightMargin(final int w, final Component c) { |
8 | ret swing(func -> JPanel { |
9 | JPanel p = marginPanel(); |
10 | p.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, w)); |
11 | p.add(c); |
12 | ret p; |
13 | }); |
14 | } |
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: | 635 / 667 |
Version history: | 2 change(s) |
Referenced in: | [show references] |