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

17
LINES

< > BotCompany Repo | #1006234 // awtCalcRegularly

JavaX fragment (include)

1  
static SingleThread awtCalcRegularly(JComponent component, int delay, int firstDelay, O runnable) {
2  
  final new SingleThread thread;
3  
  final Runnable r2 = addThreadInfoToRunnable(runnable);
4  
  fO info = _threadInfo();
5  
  installTimer(component, delay, firstDelay, new Runnable {
6  
    public void run() {
7  
      if (!licensed()) ret;
8  
      _threadInheritInfo(info);
9  
      thread.go(r2);
10  
    }
11  
  });
12  
  ret thread;
13  
}
14  
15  
static SingleThread awtCalcRegularly(JFrame frame, int delay, int firstDelay, final O runnable) {
16  
  ret awtCalcRegularly(getRootPane(frame), delay, firstDelay, runnable);
17  
}

Author comment

Began life as a copy of #1006110

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: #1006234
Snippet name: awtCalcRegularly
Eternal ID of this version: #1006234/3
Text MD5: 9c491f212a6d182aa68f669b90374144
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-25 17:19:47
Source code size: 601 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 639 / 621
Version history: 2 change(s)
Referenced in: [show references]