static void setInternalFrameY(final int y, final Component c) { swing { JInternalFrame f = getInternalFrame(c); if (f != null) f.setLocation(f.getX(), y); } }