static int moveToBottomCenter_inset = 20; static void moveToBottomCenter(Component c) { Window w = getWindow(c); if (w != null) { Rectangle area = maxWindowBounds(); w.setLocation(area.x+(area.width-w.getWidth())/2, area.y+area.height-moveToBottomCenter_inset-w.getHeight()); } }