Libraryless. Click here for Pure Java version (56L/1K/3K).
!747 m { static Window[] windows; p { windows = Window.getWindows(); print(windows.length + " window(s) found."); //print(structure(windows)); for (Window w : windows) { if (w instanceof JFrame) { JFrame f = cast w; print("Frame: " + quote(f.getTitle()) + ", position: " + f.getBounds() + ", visible: " + f.isVisible() + ", active: " + f.isActive()); } else print("Window: " + w.getClass().getName() + " [" + w.getBounds() + "], visible: " + w.isVisible() + ", active: " + w.isActive()); } } }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001213 |
Snippet name: | List all Java windows/frames |
Eternal ID of this version: | #1001213/1 |
Text MD5: | 7704cd3208965ae2fe59543bd0d55da8 |
Transpilation MD5: | df2ab03d465a636ff36add445eddda72 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-10-02 16:28:10 |
Source code size: | 583 bytes / 19 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 596 / 657 |
Referenced in: | #3000382 - Answer for ferdie (>> t = 1, f = 0) |