--- old/src/share/classes/java/awt/peer/FramePeer.java 2014-02-03 18:16:44.000000000 +0400 +++ new/src/share/classes/java/awt/peer/FramePeer.java 2014-02-03 18:16:43.000000000 +0400 @@ -28,6 +28,7 @@ import java.awt.*; import sun.awt.EmbeddedFrame; +import sun.awt.image.OffScreenImage; /** * The peer interface for {@link Frame}. This adds a couple of frame specific @@ -131,4 +132,17 @@ * @param activate activate or deactivate the window */ void emulateActivation(boolean activate); + + /** + * Notifies that the scale factor has changed. + * The method is used by the LightweightFrame Mac implementation. + */ + default void notifyScaleFactorChanged() {} + + /** + * Creates a HiDPI back buffer image with a scale factor matching + * the scale of the frame (which is an internal value). + * The method is currently used by the LightweightFrame Mac implementation. + */ + default OffScreenImage createHiDPIImage(int width, int height) { return null; } }