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

13
LINES

< > BotCompany Repo | #1006027 // actionListener

JavaX fragment (include)

static ActionListener actionListener(fO runnable) {
  ret actionListener(runnable, null);
}

static ActionListener actionListener(fO runnable, fO instanceToHold) {
  if (runnable instanceof ActionListener) ret (ActionListener) runnable;
  fO info = _threadInfo();
  ret actionListener {
    _threadInheritInfo(info);
    temp holdInstance(instanceToHold);
    pcallF(runnable);
  };
}

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: 550 / 609
Version history: 8 change(s)
Referenced in: [show references]