--- old/src/java.desktop/macosx/classes/sun/lwawt/macosx/LWCToolkit.java 2017-02-13 16:40:56.000000000 +0300 +++ new/src/java.desktop/macosx/classes/sun/lwawt/macosx/LWCToolkit.java 2017-02-13 16:40:56.000000000 +0300 @@ -359,18 +359,6 @@ } @Override - protected int getScreenHeight() { - return GraphicsEnvironment.getLocalGraphicsEnvironment() - .getDefaultScreenDevice().getDefaultConfiguration().getBounds().height; - } - - @Override - protected int getScreenWidth() { - return GraphicsEnvironment.getLocalGraphicsEnvironment() - .getDefaultScreenDevice().getDefaultConfiguration().getBounds().width; - } - - @Override protected void initializeDesktopProperties() { super.initializeDesktopProperties(); Map fontHints = new HashMap<>();