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)

1  
static Timer awtCalcEvery2(Component component, int delay, final O runnable) {
2  
  ret awtCalcEvery2(component, delay, delay, runnable);
3  
}
4  
5  
static Timer awtCalcEvery2(Component component, int delay, int firstDelay, final O runnable) {
6  
  final new SingleThread thread;
7  
  ret installTimer(componentToJComponent(component), delay, firstDelay, new Runnable {
8  
    public void run() {
9  
      if (!licensed()) ret;
10  
      thread.go(runnable);
11  
    }
12  
  });
13  
}

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: 471 / 506
Version history: 2 change(s)
Referenced in: [show references]