Libraryless. Click here for Pure Java version (14469L/99K).
!7 sclass ComponentTree extends DynModule { new DynModuleRef mate; transient JTree tree; void start { ownTimer(doEvery(1000, r updateMe)); } JComponent visualize() { final JComponent c = dm_getVisualization(mate!); if (c == null) null; ret jSection(str(mate), wrap( jDynamicTree(c, func(Component c) -> L<Component> { getComponents(c) }))); } void update { if (setField(mate := DynModuleRef(dm_closestModule(this)))) revisualize(); } }
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: | #1016037 |
Snippet name: | Show Component Tree Of Other Module |
Eternal ID of this version: | #1016037/6 |
Text MD5: | 464acccd7caeca989f7cecb9f30bc48d |
Transpilation MD5: | 5a68d1021c76c87904a99ccf487c43ad |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-08 15:14:28 |
Source code size: | 540 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 533 / 718 |
Version history: | 5 change(s) |
Referenced in: | -