Libraryless. Click here for Pure Java version (5156L/28K).
1 | svoid addAndValidate(Container c, Component x) {
|
2 | if (c != null && x != null) swing {
|
3 | |
4 | ifclass DynamicStack |
5 | if (c cast DynamicStack) |
6 | ret with c.addComponent(x); |
7 | endif |
8 | |
9 | c.add(x); |
10 | c.revalidate(); |
11 | } |
12 | } |
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: | 734 / 868 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |