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()); } }); }