void () { if (myFocusDrawer == null) { myFocusDrawer = new FocusDrawer(); myFocusDrawer.start(); Toolkit.getDefaultToolkit().addAWTEventListener(myFocusDrawer, AWTEvent.FOCUS_EVENT_MASK); } else { myFocusDrawer.setRunning(false); Toolkit.getDefaultToolkit().removeAWTEventListener(myFocusDrawer); myFocusDrawer = null; } }