1 | static JPanel leftAlignedButtons(O... params) {
|
2 | new L<JComponent> l; |
3 | for (int i = 0; i < l(params); i += 2) |
4 | if (params[i] != null) |
5 | if (params[i] instanceof JComponent) |
6 | l.add((JComponent) params[i--]); |
7 | else |
8 | l.add(jbutton((S) params[i], params[i+1])); |
9 | ret jline(l); |
10 | } |
Began life as a copy of #1010175
download show line numbers debug dex old transpilations
Travelled to 11 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019723 |
| Snippet name: | leftAlignedButtons |
| Eternal ID of this version: | #1019723/1 |
| Text MD5: | 201caeb4c950d479bd8bfce42f28e922 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-24 00:46:35 |
| Source code size: | 312 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 509 / 556 |
| Referenced in: | [show references] |