< prev index next >

src/java.desktop/share/classes/java/awt/Component.java

Print this page

        

@@ -310,11 +310,11 @@
      * @since 1.3
      * @serial
      * @see GraphicsConfiguration
      * @see #getGraphicsConfiguration
      */
-    private transient GraphicsConfiguration graphicsConfig = null;
+    private transient volatile GraphicsConfiguration graphicsConfig;
 
     /**
      * A reference to a <code>BufferStrategy</code> object
      * used to manipulate the buffers on this component.
      *

@@ -1141,14 +1141,12 @@
      * @return the <code>GraphicsConfiguration</code> used by this
      *          <code>Component</code> or <code>null</code>
      * @since 1.3
      */
     public GraphicsConfiguration getGraphicsConfiguration() {
-        synchronized(getTreeLock()) {
             return getGraphicsConfiguration_NoClientCode();
         }
-    }
 
     final GraphicsConfiguration getGraphicsConfiguration_NoClientCode() {
         return graphicsConfig;
     }
 
< prev index next >