1 | static JMenu jDynamicScrollingMenu(fS title, final VF1<JPopupMenu> populate) { |
2 | final JMenu menu = jmenu(title); |
3 | swing { |
4 | JMenuScroller scroller = JMenuScroller.setScrollerFor(menu); |
5 | scroller.fillMenu = populate; |
6 | } |
7 | ret menu; |
8 | } |
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: | 372 / 433 |
Version history: | 3 change(s) |
Referenced in: | [show references] |