static JFrame maximizeFrame(Component c) { JFrame f = getFrame(c); if (f != null) f.setExtendedState(JFrame.MAXIMIZED_BOTH); ret f; }