Libraryless. Click here for Pure Java version (9187L/51K).
static <A extends Container> A addAllComponents(A c, L<? extends Component> components) { if (nempty(components)) swing { for (Component x : components) c.add(x); revalidate(c); } ret c; } static <A extends Container> A addAllComponents(A c, Component... components) { ret addAllComponents(c, asList(components)); }
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: | #1014721 |
Snippet name: | addAllComponents - add multiple Swing components to container |
Eternal ID of this version: | #1014721/5 |
Text MD5: | 0dc25335d73750739fce66228febe06c |
Transpilation MD5: | 5df3f4f8d39ab0e8a4f35ac51fce932e |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-09-07 05:52:29 |
Source code size: | 351 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 457 / 548 |
Version history: | 4 change(s) |
Referenced in: | [show references] |