svoid makeMenuFullyDynamic(final JMenu menu, final VF1<JMenu> populate) { addMenuListener(menu, new MenuListener { public void menuSelected(MenuEvent e) { clearMenu(menu); callF(populate, menu); } public void menuDeselected(MenuEvent e) { clearMenu(menu); } public void menuCanceled(MenuEvent e) { clearMenu(menu); } }); }
Began life as a copy of #1019361
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: | #1020521 |
Snippet name: | makeMenuFullyDynamic |
Eternal ID of this version: | #1020521/2 |
Text MD5: | 920b859074f30cb9920204331d765752 |
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:18:49 |
Source code size: | 399 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 277 / 318 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1020523 - makePopupMenuFullyDynamic |