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

25
LINES

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

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (5507L) is out of date.

// independent timer
static void awtLater(int delay, final O r) {
  swingLater(delay, r);
}

static void awtLater(int delay, Runnable r) {
  swingLater(delay, r);
}

static void awtLater(O r) {
  swingLater(r);
}

static void awtLater(double delaySeconds, Runnable r) {
  swingLater(toMS(delaySeconds), r);
}

// dependent timer (runs only when component is visible)
static void awtLater(JComponent component, int delay, O r) {
  installTimer(component, r, delay, delay, false);
}

static void awtLater(JFrame frame, int delay, O r) {
  awtLater(frame.getRootPane(), delay, r);
}

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/5
Text MD5: 0b617382cbd1d375a23e0de8a27a6cce
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-24 19:37:46
Source code size: 603 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 757 / 834
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)