Libraryless. Click here for Pure Java version (7072L/41K).
1 | static void standardTitlePopupMenu(final JFrame frame) { |
2 | // standard right-click behavior on titles |
3 | if (!isSubstanceLAF()) ret; |
4 | titlePopupMenu(frame, voidfunc(JPopupMenu menu) { |
5 | bool alwaysOnTop = frame.isAlwaysOnTop(); |
6 | ifndef standardTitlePopupMenu_noProgramFunctions |
7 | menu.add(jmenuItem("Restart Program", r restart)); |
8 | menu.add(jmenuItem("Duplicate Program", r duplicateThisProgram)); |
9 | endifndef |
10 | menu.add(jmenuItem("Show Console", r showConsole)); |
11 | menu.add(jCheckBoxMenuItem("Always On Top", alwaysOnTop, r { toggleAlwaysOnTop(frame) })); |
12 | /*ifndef standardTitlePopupMenu_noShootWindow |
13 | { menu.add(jMenuItem("Shoot Window", r { shootWindowGUI_external(frame, 500) })); } |
14 | endifndef*/ |
15 | //addMenuItem(menu, "Bigger fonts", r swingBiggerFonts); |
16 | //addMenuItem(menu, "Smaller fonts", r swingSmallerFonts); |
17 | }); |
18 | } |
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: | #1007754 |
Snippet name: | standardTitlePopupMenu |
Eternal ID of this version: | #1007754/13 |
Text MD5: | 49c7e7a8b6ccfd2548814bda4cd67157 |
Transpilation MD5: | 0529edc60511651418dceb9f4e87677c |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-04 20:39:49 |
Source code size: | 881 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 572 / 658 |
Version history: | 12 change(s) |
Referenced in: | [show references] |