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

19
LINES

< > BotCompany Repo | #1003826 // onDoubleClickOrEnter

JavaX fragment (include)

static JTable onDoubleClickOrEnter(JTable table, Runnable runnable) {
  ret onDoubleClickOrEnter(table, (O) runnable);
}

static JTable onDoubleClickOrEnter(final JTable table, O runnable) {
  onDoubleClick(table, runnable);
  onEnter(table, runnable);
  ret table;
}

static JList onDoubleClickOrEnter(final JList list, final O runnable) {
  onDoubleClick(list, runnable);
  onEnter(list, runnable);
  ret list;
}

static JTable onDoubleClickOrEnter(O runnable, JTable table) {
  ret onDoubleClickOrEnter(table, runnable);
}

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: 706 / 696
Version history: 5 change(s)
Referenced in: [show references]