Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1001213 // List all Java windows/frames

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (56L/1K/3K).

1  
!747
2  
3  
m {
4  
  static Window[] windows;
5  
  
6  
  p {
7  
    windows = Window.getWindows();
8  
    print(windows.length +  " window(s) found.");
9  
    //print(structure(windows));
10  
    
11  
    for (Window w : windows) {
12  
      if (w instanceof JFrame) {
13  
        JFrame f = cast w;
14  
        print("Frame: " + quote(f.getTitle()) + ", position: " + f.getBounds() + ", visible: " + f.isVisible() + ", active: " + f.isActive());
15  
      } else
16  
        print("Window: " + w.getClass().getName() + " [" + w.getBounds() + "], visible: " + w.isVisible() + ", active: " + w.isActive());
17  
    }
18  
  }
19  
}

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: 597 / 659
Referenced in: [show references]