public boolean isCompletelyOnScreen() { Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); return jFrame.getX() + jFrame.getWidth() < dim.getWidth() && jFrame.getY() + jFrame.getHeight() < dim.getHeight(); }