Download Jar. Libraryless. Click here for Pure Java version (6435L/46K).
1 | !7 |
2 | |
3 | p-exp { |
4 | showFrame(jfullcenter(jbutton("Pop me dude " + unicode_downPointingTriangle(), r { |
5 | JButton btn = heldInstance(JButton); |
6 | new JPopupMenu menu; |
7 | menu.add(jMenuItem("Test 1")); |
8 | menu.add(jMenuItem("Test 2")); |
9 | menu.show(btn, 0, btn.getHeight()); |
10 | }))); |
11 | } |
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: | #1020100 |
Snippet name: | Pop Down Button Test [show popup menu on button click] |
Eternal ID of this version: | #1020100/4 |
Text MD5: | 2d6df408e11381950010c439bf377706 |
Transpilation MD5: | 80a6ce31bff0bd40d8b83350098f5405 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-07 20:15:16 |
Source code size: | 292 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 327 / 870 |
Version history: | 3 change(s) |
Referenced in: | [show references] |