static <A extends JComponent> A setMargin(final int w, final int h, final A a) {
if (a != null) swing {
a.setBorder(BorderFactory.createEmptyBorder(h, w, h, w));
}
ret a;
}
static <A extends JComponent> A setMargin(int w, A a) {
ret setMargin(w, w, a);
}Began life as a copy of #1004714
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014641 |
| Snippet name: | setMargin |
| Eternal ID of this version: | #1014641/3 |
| Text MD5: | a2997337fef5cdd8e53cd2d18ac52de7 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-12 23:04:58 |
| Source code size: | 276 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 998 / 992 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |