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

7
LINES

< > BotCompany Repo | #1018421 // onDoubleClickOrEnterThreaded

JavaX fragment (include)

static void onDoubleClickOrEnterThreaded(final JList list, final VF1<S> runnable) {
  fO info = _threadInfo();
  onDoubleClickOrEnter(list, voidfunc(fS s) {
    _threadInheritInfo(info); // TODO: this is the AWT thread - only set info temporarily
    thread { pcallF(runnable, s); }
  });
}

Author comment

Began life as a copy of #1003826

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018421
Snippet name: onDoubleClickOrEnterThreaded
Eternal ID of this version: #1018421/5
Text MD5: f2811d2fd5b99936054e040bc1e47af1
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-07 06:50:20
Source code size: 296 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 409 / 449
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)