static JPanel smartAddWithLayout(JPanel panel, O layout, L parts) { for (O o : parts) panel.add(wrapForSmartAdd(o), layout); ret panel; } static JPanel smartAddWithLayout(JPanel panel, O layout, O... parts) { ret smartAddWithLayout(panel, layout, asList(flattenArray2(parts))); }
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: | 544 / 608 |
Version history: | 3 change(s) |
Referenced in: | [show references] |