Libraryless. Click here for Pure Java version (5156L/28K).
svoid addAndValidate(Container c, Component x) { if (c != null && x != null) swing { ifclass DynamicStack if (c cast DynamicStack) ret with c.addComponent(x); endif c.add(x); c.revalidate(); } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1015785 |
| Snippet name: | addAndValidate |
| Eternal ID of this version: | #1015785/3 |
| Text MD5: | 308f50ad553d0d81d7fd035a961aa6dd |
| Transpilation MD5: | 188d4d919e8531180ba789d88c0de8b9 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-29 02:15:28 |
| Source code size: | 243 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 735 / 868 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1015786 - removeAllComponents (and validate) #1035448 - addAndRepaint - add component to container and repaint the container |