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

10
LINES

< > BotCompany Repo | #1013344 // blinkWindowUsingLocation

JavaX fragment (include)

1  
static void blinkWindowUsingLocation(final JWindow w) {
2  
  final Point location = w.getLocation();
3  
  awtEvery(w, 1000, new Runnable {
4  
    bool on = true;
5  
    
6  
    public void run() {
7  
      w.setLocation((on = !on) ? location : locationOutsideOfScreen());
8  
    }
9  
  });
10  
}

Author comment

Began life as a copy of #1013342

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: #1013344
Snippet name: blinkWindowUsingLocation
Eternal ID of this version: #1013344/3
Text MD5: 5924174b471799bbd67ee06489e2b2b0
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-02 23:08:28
Source code size: 276 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 418 / 437
Version history: 2 change(s)
Referenced in: [show references]