static JTextField standardTextFieldPopupMenu(final JTextField tf) { final WeakReference<JTextField> ref = weakRef(tf); componentPopupMenuItem(tf, "Copy text to clipboard", r { copyTextToClipboard(ref->getText()) }); componentPopupMenuItem(tf, "Paste", r { ref->paste() }); ret tf; }
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: | 542 / 594 |
Version history: | 3 change(s) |
Referenced in: | [show references] |