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