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

8
LINES

< > BotCompany Repo | #1020527 // jDynamicScrollingMenu - scrolling JMenu with menu making function

JavaX fragment (include)

static JMenu jDynamicScrollingMenu(fS title, final VF1<JPopupMenu> populate) {
  final JMenu menu = jmenu(title);
  swing {
    JMenuScroller scroller = JMenuScroller.setScrollerFor(menu);
    scroller.fillMenu = populate;
  }
  ret menu;
}

Author comment

Began life as a copy of #1020524

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020527
Snippet name: jDynamicScrollingMenu - scrolling JMenu with menu making function
Eternal ID of this version: #1020527/4
Text MD5: 92c231e5ffd85bf6acb0cf9b87ffe7ad
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-25 19:51:13
Source code size: 247 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 258 / 311
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030749 - addScrollingSubMenu