Exemple #1
0
 public void frame__windowStateChanged(WindowEvent e) {
   if ((e.getNewState() & Frame.ICONIFIED) == Frame.ICONIFIED) {
     stateMachine.minimized = true;
     KeyHook.unblockWindowsKey();
   } else if ((e.getNewState() & Frame.NORMAL) == Frame.NORMAL) {
     stateMachine.minimized = false;
     KeyHook.blockWindowsKey();
   }
 }
 @Override
 public void windowStateChanged(final WindowEvent e) {
   if (e.getNewState() == Frame.ICONIFIED) {
     Logger.debug("Window Iconified");
     windowIconifiedEvent();
   } else if (e.getNewState() != Frame.ICONIFIED) {
     Logger.debug("Window Deiconified");
     windowDeiconifiedEvent();
   }
 }
 protected void mainFrameWindowStateChanged(WindowEvent e) {
   // minimized
   if ((e.getNewState() & mainFrame.MAXIMIZED_BOTH) == mainFrame.MAXIMIZED_BOTH) {
     hideBtn.setEnabled(false);
   } else {
     hideBtn.setEnabled(true);
   }
 }
Exemple #4
0
 @Override
 public void windowStateChanged(WindowEvent e) {
   saveWindowState(e.getNewState());
 }