--- old/src/java.desktop/windows/classes/sun/awt/windows/WWindowPeer.java 2015-11-05 00:38:30.935548500 -0800 +++ new/src/java.desktop/windows/classes/sun/awt/windows/WWindowPeer.java 2015-11-05 00:38:30.669931800 -0800 @@ -294,6 +294,12 @@ synchronized native void reshapeFrame(int x, int y, int width, int height); + native Dimension getNativeWindowSize(); + + public Dimension getScaledWindowSize() { + return getNativeWindowSize(); + } + public boolean requestWindowFocus(CausedFocusEvent.Cause cause) { if (!focusAllowedFor()) { return false; @@ -490,8 +496,7 @@ } // get current GD - Win32GraphicsDevice oldDev = (Win32GraphicsDevice)winGraphicsConfig - .getDevice(); + Win32GraphicsDevice oldDev = winGraphicsConfig.getDevice(); Win32GraphicsDevice newDev; GraphicsDevice devs[] = GraphicsEnvironment