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

10
LINES

< > BotCompany Repo | #1013344 // blinkWindowUsingLocation

JavaX fragment (include)

static void blinkWindowUsingLocation(final JWindow w) {
  final Point location = w.getLocation();
  awtEvery(w, 1000, new Runnable {
    bool on = true;
    
    public void run() {
      w.setLocation((on = !on) ? location : locationOutsideOfScreen());
    }
  });
}

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: 333 / 355
Version history: 2 change(s)
Referenced in: [show references]