Libraryless. Click here for Pure Java version (9187L/51K).
1 | static <A extends Container> A addAllComponents(A c, L<? extends Component> components) {
|
2 | if (nempty(components)) swing {
|
3 | for (Component x : components) |
4 | c.add(x); |
5 | revalidate(c); |
6 | } |
7 | ret c; |
8 | } |
9 | |
10 | static <A extends Container> A addAllComponents(A c, Component... components) {
|
11 | ret addAllComponents(c, asList(components)); |
12 | } |
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: | 679 / 835 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |