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