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

13
LINES

< > BotCompany Repo | #1006027 // actionListener

JavaX fragment (include)

1  
static ActionListener actionListener(fO runnable) {
2  
  ret actionListener(runnable, null);
3  
}
4  
5  
static ActionListener actionListener(fO runnable, fO instanceToHold) {
6  
  if (runnable instanceof ActionListener) ret (ActionListener) runnable;
7  
  fO info = _threadInfo();
8  
  ret actionListener {
9  
    _threadInheritInfo(info);
10  
    temp holdInstance(instanceToHold);
11  
    pcallF(runnable);
12  
  };
13  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006027
Snippet name: actionListener
Eternal ID of this version: #1006027/9
Text MD5: d2fcd1b57233a9ffd942cf29c0d95341
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-08 20:16:25
Source code size: 396 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 557 / 618
Version history: 8 change(s)
Referenced in: [show references]