static JFrame packFrameInTopRightCorner(Component c) { JFrame f = getFrame(c); if (f != null) { packFrame(f); moveToTopRightCorner(f); } ret f; }