static void setFrameBounds(Component c, Rectangle bounds) { JFrame f = getFrame(c); if (f != null) { f.setBounds(bounds); revalidate(f); } }