1 | static JTextField standardTextFieldPopupMenu(final JTextField tf) { |
2 | final WeakReference<JTextField> ref = weakRef(tf); |
3 | componentPopupMenuItem(tf, "Copy text to clipboard", r { |
4 | copyTextToClipboard(ref->getText()) |
5 | }); |
6 | componentPopupMenuItem(tf, "Paste", r { ref->paste() }); |
7 | ret tf; |
8 | } |
Began life as a copy of #1007199
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009908 |
Snippet name: | standardTextFieldPopupMenu |
Eternal ID of this version: | #1009908/4 |
Text MD5: | d2c1611e46cb7cab835c4a213a1de81b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-07 15:15:08 |
Source code size: | 303 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 544 / 597 |
Version history: | 3 change(s) |
Referenced in: | [show references] |