1 | static <A extends JComponent> A setMargin(final int w, final int h, final A a) { |
2 | if (a != null) swing { |
3 | a.setBorder(BorderFactory.createEmptyBorder(h, w, h, w)); |
4 | } |
5 | ret a; |
6 | } |
7 | |
8 | static <A extends JComponent> A setMargin(int w, A a) { |
9 | ret setMargin(w, w, a); |
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, 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: | 511 / 516 |
Version history: | 2 change(s) |
Referenced in: | [show references] |