static void activateFrame(final Component c) { swing { JFrame f = getFrame(c); if (f == null) ret; if (!f.isVisible()) f.setVisible(true); if (f.getState() == Frame.ICONIFIED) f.setState(Frame.NORMAL); if (isWindows()) { bool fullscreen = f.getExtendedState() == Frame.MAXIMIZED_BOTH; frame.setExtendedState(JFrame.ICONIFIED); frame.setExtendedState(fullscreen ? JFrame.MAXIMIZED_BOTH : JFrame.NORMAL); } f.toFront(); } }