jdk/src/share/classes/java/awt/Component.java
changeset 11083 34aa99149ff2
parent 10442 687b47a41754
child 11094 1f244f2719d3
equal deleted inserted replaced
10880:0c7513649265 11083:34aa99149ff2
  1156     }
  1156     }
  1157 
  1157 
  1158     boolean updateGraphicsData(GraphicsConfiguration gc) {
  1158     boolean updateGraphicsData(GraphicsConfiguration gc) {
  1159         checkTreeLock();
  1159         checkTreeLock();
  1160 
  1160 
       
  1161         if (graphicsConfig == gc) {
       
  1162             return false;
       
  1163         }
       
  1164 
  1161         graphicsConfig = gc;
  1165         graphicsConfig = gc;
  1162 
  1166 
  1163         ComponentPeer peer = getPeer();
  1167         ComponentPeer peer = getPeer();
  1164         if (peer != null) {
  1168         if (peer != null) {
  1165             return peer.updateGraphicsData(gc);
  1169             return peer.updateGraphicsData(gc);