1 | // text = text to display as description of the action |
2 | static JTable tableDefaultAction(JTable table, S text, O runnable) { |
3 | Runnable r = rThread(runnable); |
4 | onDoubleClickOrEnter(table, r); |
5 | tablePopupMenuItem_top(table, text, r); |
6 | ret table; |
7 | } |
Began life as a copy of #1003826
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: | #1020963 |
Snippet name: | tableDefaultAction - put on top of popup menu and register for Enter/double click. runs code in new thread |
Eternal ID of this version: | #1020963/5 |
Text MD5: | bd5ed71793e41d0313622872ffa13bed |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-12 23:07:17 |
Source code size: | 254 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 313 / 342 |
Version history: | 4 change(s) |
Referenced in: | [show references] |