jdk/src/share/classes/java/applet/Applet.java
changeset 4261 126dc6fe0d7b
parent 2 90ce3da70b43
child 5506 202f599c92aa
--- a/jdk/src/share/classes/java/applet/Applet.java	Mon Oct 19 16:06:41 2009 +0400
+++ b/jdk/src/share/classes/java/applet/Applet.java	Wed Oct 21 17:06:41 2009 +0400
@@ -230,6 +230,21 @@
     }
 
     /**
+     * Indicates if this container is a validate root.
+     * <p>
+     * {@code Applet} objects are the validate roots, and, therefore, they
+     * override this method to return {@code true}.
+     *
+     * @return {@code true}
+     * @since 1.7
+     * @see java.awt.Container#isValidateRoot
+     */
+    @Override
+    public boolean isValidateRoot() {
+        return true;
+    }
+
+    /**
      * Requests that the argument string be displayed in the
      * "status window". Many browsers and applet viewers
      * provide such a window, where the application can inform users of