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

15
LINES

< > BotCompany Repo | #1005625 // disposeWindowAfter

JavaX fragment (include)

static <A extends Window> A disposeWindowAfter(int delay, final A w) {
  if (w != null)
    swingLater(delay, r {
      w.dispose();
    });
  ret w;
}

static <A extends Window> A disposeWindowAfter(A w, double seconds) {
  ret disposeWindowAfter(toMS_int(seconds), w);
}

static <A extends Window> A disposeWindowAfter(double seconds, A w) {
  ret disposeWindowAfter(w, seconds);
}

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: #1005625
Snippet name: disposeWindowAfter
Eternal ID of this version: #1005625/4
Text MD5: f00bd37b3a18400fc3892753731ea84f
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-20 20:47:56
Source code size: 397 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 563 / 609
Version history: 3 change(s)
Referenced in: #1005660 - disposeWindowsAfter
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1007010 - disposeWindowIfMouseNotInIt