Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1003826 // onDoubleClickOrEnter

JavaX fragment (include)

1  
static JTable onDoubleClickOrEnter(JTable table, Runnable runnable) {
2  
  ret onDoubleClickOrEnter(table, (O) runnable);
3  
}
4  
5  
static JTable onDoubleClickOrEnter(final JTable table, O runnable) {
6  
  onDoubleClick(table, runnable);
7  
  onEnter(table, runnable);
8  
  ret table;
9  
}
10  
11  
static JList onDoubleClickOrEnter(final JList list, final O runnable) {
12  
  onDoubleClick(list, runnable);
13  
  onEnter(list, runnable);
14  
  ret list;
15  
}
16  
17  
static JTable onDoubleClickOrEnter(O runnable, JTable table) {
18  
  ret onDoubleClickOrEnter(table, runnable);
19  
}

Author comment

Began life as a copy of #1003586

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1003826
Snippet name: onDoubleClickOrEnter
Eternal ID of this version: #1003826/6
Text MD5: 43c72776da72c81f907ccd97c0a9437a
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-15 23:18:35
Source code size: 543 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 744 / 738
Version history: 5 change(s)
Referenced in: [show references]