--- old/src/java.desktop/share/classes/java/awt/Component.java 2015-07-08 11:58:12.222838600 +0300 +++ new/src/java.desktop/share/classes/java/awt/Component.java 2015-07-08 11:58:11.619795400 +0300 @@ -4030,9 +4030,11 @@ /** * Creates a new flipping buffer strategy for this component. - * The component must be a Canvas or Window. + * The component must be a Canvas or Window or + * Applet. * @see Canvas * @see Window + * @see Applet * @param numBuffers the number of buffers * @param caps the capabilities of the buffers * @exception AWTException if the capabilities supplied could not be @@ -4049,10 +4051,11 @@ throws AWTException { if (!(Component.this instanceof Window) && - !(Component.this instanceof Canvas)) + !(Component.this instanceof Canvas) && + !(Component.this instanceof Applet)) { throw new ClassCastException( - "Component must be a Canvas or Window"); + "Component must be a Canvas or Window or Applet"); } this.numBuffers = numBuffers; this.caps = caps;