static <A extends Container> A addComponent(final A c, final Component component) { if (component != null) swing { c.add(component); revalidate(c); } ret c; }
Began life as a copy of #1014721
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: | #1016349 |
Snippet name: | addComponent - add Swing component to container & revalidate - returns container |
Eternal ID of this version: | #1016349/5 |
Text MD5: | 5ac03e2cf01d35b9de97f9e7052ed303 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-16 15:23:13 |
Source code size: | 178 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 572 / 612 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1016361 - replaceAllComponents #1018402 - addComponents - add Swing components to container & revalidate - returns container #1034806 - addComponentAtIndex - add Swing component to container & revalidate - returns container |