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

10
LINES

< > BotCompany Repo | #1015888 // titlePopupMenu_top - add popup menu items to title bars (Substance L&F only)

JavaX fragment (include)

static void titlePopupMenu_top(final Component c, final VF1<JPopupMenu> menuMaker) {
  awtIfNecessary {
    if (!isSubstanceLAF())
      print("Can't add title right click!");
    else {
      JComponent titleBar = getTitlePaneComponent(getFrame(c));
      componentPopupMenu_top(titleBar, menuMaker);
    }
  }
}

Author comment

Began life as a copy of #1005777

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: #1015888
Snippet name: titlePopupMenu_top - add popup menu items to title bars (Substance L&F only)
Eternal ID of this version: #1015888/4
Text MD5: 10f34da970864aec4959bdefa76ad38a
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-29 18:17:07
Source code size: 322 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 448 / 493
Version history: 3 change(s)
Referenced in: [show references]