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