static int internalFrameY2(Component c) { JInternalFrame f = getInternalFrame(c); if (f != null) ret f.getY()+f.getHeight(); else ret 0; }