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

17
LINES

< > BotCompany Repo | #1003463 // Inspect Substance title bar elements, test right-click

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

Libraryless. Click here for Pure Java version (1555L/11K/36K).

1  
!752
2  
3  
p {
4  
  substanceLAF();
5  
  awt {
6  
    JFrame frame = showFrame();
7  
    JComponent titleBar = getTitlePaneComponent(frame);
8  
    for (Component c : getSwingChildren(titleBar))
9  
      print(c);
10  
    titleBar.addMouseListener(new MouseAdapter {
11  
      public void mousePressed(MouseEvent evt) {
12  
        if (evt.getButton() != MouseEvent.BUTTON1)
13  
          print("Right-click! Evt: " + evt);
14  
      }
15  
    });
16  
  }
17  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003463
Snippet name: Inspect Substance title bar elements, test right-click
Eternal ID of this version: #1003463/1
Text MD5: a077f42c34f705628b0bab70518a2ab7
Transpilation MD5: 297dd8b1300fa11d3ed1528b66664305
Author: stefan
Category: javax / talking robots
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-03 18:50:07
Source code size: 422 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 570 / 693
Referenced in: [show references]