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

13
LINES

< > BotCompany Repo | #1009855 // awtCalcEvery2 - returns javax.swing.Timer

JavaX fragment (include)

static Timer awtCalcEvery2(Component component, int delay, final O runnable) {
  ret awtCalcEvery2(component, delay, delay, runnable);
}

static Timer awtCalcEvery2(Component component, int delay, int firstDelay, final O runnable) {
  final new SingleThread thread;
  ret installTimer(componentToJComponent(component), delay, firstDelay, new Runnable {
    public void run() {
      if (!licensed()) ret;
      thread.go(runnable);
    }
  });
}

Author comment

Began life as a copy of #1006234

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009855
Snippet name: awtCalcEvery2 - returns javax.swing.Timer
Eternal ID of this version: #1009855/3
Text MD5: c8fa3b1c0020d1106e607b3fe1d903d7
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-21 23:11:10
Source code size: 457 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 368 / 404
Version history: 2 change(s)
Referenced in: [show references]