1 | static int withBottomMargin_defaultWidth = 6; |
2 | |
3 | static JPanel withBottomMargin(int w default withBottomMargin_defaultWidth, Component etc c) {
|
4 | ret swing(func -> JPanel {
|
5 | JPanel p = new JPanel(new BorderLayout); |
6 | p.setBorder(BorderFactory.createEmptyBorder(0, 0, w, 0)); |
7 | p.add(c); |
8 | ret p; |
9 | }); |
10 | } |
Began life as a copy of #1004714
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1004959 |
| Snippet name: | withBottomMargin |
| Eternal ID of this version: | #1004959/6 |
| Text MD5: | bc87bda7eeea6364c82af99400c912f9 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-12-11 15:55:59 |
| Source code size: | 319 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1059 / 1079 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |