Libraryless. Click here for Pure Java version (1555L/11K/36K).
!752 p { substanceLAF(); awt { JFrame frame = showFrame(); JComponent titleBar = getTitlePaneComponent(frame); for (Component c : getSwingChildren(titleBar)) print(c); titleBar.addMouseListener(new MouseAdapter { public void mousePressed(MouseEvent evt) { if (evt.getButton() != MouseEvent.BUTTON1) print("Right-click! Evt: " + evt); } }); } }
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: | 793 / 968 |
| Referenced in: | #1003664 - onTitleRightClick - install right-click listener on title bars (Substance L&F only) |