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

17
LINES

< > BotCompany Repo | #1005520 - awtLater - synonym of swingLater + more

JavaX fragment (include)

1  
// independent timer
2  
static void awtLater(int delay, final O r) {
3  
  swingLater(delay, r);
4  
}
5  
6  
static void awtLater(O r) {
7  
  swingLater(r);
8  
}
9  
10  
// dependent timer (runs only when component is visible)
11  
static void awtLater(JComponent component, int delay, O r) {
12  
  installTimer(component, r, delay, delay, false);
13  
}
14  
15  
static void awtLater(JFrame frame, int delay, O r) {
16  
  awtLater(frame.getRootPane(), delay, r);
17  
}

Author comment

Began life as a copy of #1001313

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005520
Snippet name: awtLater - synonym of swingLater + more
Eternal ID of this version: #1005520/2
Text MD5: 563e87dd6cb24aa063ca4c788516c919
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-19 15:13:26
Source code size: 426 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 487 / 500
Version history: 1 change(s)
Referenced in: [show references]