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

17
LINES

< > BotCompany Repo | #1006234 // awtCalcRegularly

JavaX fragment (include)

static SingleThread awtCalcRegularly(JComponent component, int delay, int firstDelay, O runnable) {
  final new SingleThread thread;
  final Runnable r2 = addThreadInfoToRunnable(runnable);
  fO info = _threadInfo();
  installTimer(component, delay, firstDelay, new Runnable {
    public void run() {
      if (!licensed()) ret;
      _threadInheritInfo(info);
      thread.go(r2);
    }
  });
  ret thread;
}

static SingleThread awtCalcRegularly(JFrame frame, int delay, int firstDelay, final O runnable) {
  ret awtCalcRegularly(getRootPane(frame), delay, firstDelay, runnable);
}

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: 638 / 620
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1006705 - awtCalcEvery - synonym of awtCalcRegularly
#1009855 - awtCalcEvery2 - returns javax.swing.Timer
#1034897 - awtCalcContinuously