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

8
LINES

< > BotCompany Repo | #1007010 // disposeWindowIfMouseNotInIt

JavaX fragment (include)

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

Author comment

Began life as a copy of #1005625

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: #1007010
Snippet name: disposeWindowIfMouseNotInIt
Eternal ID of this version: #1007010/1
Text MD5: cd48e8212cc255a79518c04996d0a63f
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-25 14:30:22
Source code size: 198 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 458 / 460
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)