static void setWindowBounds(final int x, final int y, final int w, final int h, final Window w) { if (w != null) swing { w.setBounds(x, y, w, h); } }