1 | static Set<Component> allAWTComponents_extraList = weakHashSet(); |
2 | |
3 | static L<Component> allAWTComponents() { |
4 | if (headless()) ret emptyList(); |
5 | ret swing(func -> L<Component> { |
6 | flattenList2( |
7 | map allChildren(allWindows()), |
8 | cloneList(allAWTComponents_extraList), |
9 | |
10 | // now illegal: |
11 | // callOpt(SwingUtilities.class, 'getSharedOwnerFrame) |
12 | ) |
13 | }); |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1016841 |
Snippet name: | allAWTComponents |
Eternal ID of this version: | #1016841/8 |
Text MD5: | 2a6bf4ed4be08d17dd0362d9cddfacdc |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-22 15:52:30 |
Source code size: | 394 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 386 / 438 |
Version history: | 7 change(s) |
Referenced in: | [show references] |