--- old/src/share/classes/sun/awt/LightweightFrame.java 2014-05-13 21:17:46.000000000 +0400 +++ new/src/share/classes/sun/awt/LightweightFrame.java 2014-05-13 21:17:46.000000000 +0400 @@ -124,4 +124,20 @@ * @see SunToolkit#ungrab(java.awt.Window) */ public abstract void ungrabFocus(); + + /** + * Returns the scale factor set with the {@link #setScaleFactor} method. + * The default value is 1. + * + * @return the scale factor + */ + public abstract int getScaleFactor(); + + /** + * Sets the scale factor which defines the HiDPI resolution + * of the offscreen buffer the frame is painted to. + * + * @param scale the factor + */ + public abstract void setScaleFactor(int scale); }