1 | static JPanel smartAddWithLayout(JPanel panel, O layout, L parts) { |
2 | for (O o : parts) |
3 | panel.add(wrapForSmartAdd(o), layout); |
4 | ret panel; |
5 | } |
6 | |
7 | static JPanel smartAddWithLayout(JPanel panel, O layout, O... parts) { |
8 | ret smartAddWithLayout(panel, layout, asList(flattenArray2(parts))); |
9 | } |
Began life as a copy of #1001773
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006476 |
Snippet name: | smartAddWithLayout (adding arbitrary objects to a JPanel) |
Eternal ID of this version: | #1006476/4 |
Text MD5: | 4ccf3dd816737fdd18a9d2562bc40bb3 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-10 15:39:41 |
Source code size: | 300 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 545 / 609 |
Version history: | 3 change(s) |
Referenced in: | [show references] |