jdk/src/share/classes/java/awt/Container.java
changeset 7241 ed85b6040a98
parent 7154 4e8371f358ac
child 7668 d4a77089c587
--- a/jdk/src/share/classes/java/awt/Container.java	Fri Nov 26 15:07:53 2010 +0300
+++ b/jdk/src/share/classes/java/awt/Container.java	Fri Nov 26 15:41:16 2010 +0300
@@ -51,6 +51,7 @@
 import sun.util.logging.PlatformLogger;
 
 import sun.awt.AppContext;
+import sun.awt.AWTAccessor;
 import sun.awt.CausedFocusEvent;
 import sun.awt.PeerEvent;
 import sun.awt.SunToolkit;
@@ -247,6 +248,13 @@
         if (!GraphicsEnvironment.isHeadless()) {
             initIDs();
         }
+
+        AWTAccessor.setContainerAccessor(new AWTAccessor.ContainerAccessor() {
+            @Override
+            public void validateUnconditionally(Container cont) {
+                cont.validateUnconditionally();
+            }
+        });
     }
 
     /**