7125657: [macosx] SpreadSheet demo has the broken display when clicking outside of the table.
authorserb
Thu, 05 Apr 2012 20:38:24 +0400
changeset 12400 80e69bcb0b8e
parent 12399 6221283c619f
child 12401 b41262091b0f
7125657: [macosx] SpreadSheet demo has the broken display when clicking outside of the table. Reviewed-by: alexp, anthony, art
jdk/src/macosx/classes/sun/lwawt/LWRepaintArea.java
--- a/jdk/src/macosx/classes/sun/lwawt/LWRepaintArea.java	Thu Apr 05 19:43:56 2012 +0400
+++ b/jdk/src/macosx/classes/sun/lwawt/LWRepaintArea.java	Thu Apr 05 20:38:24 2012 +0400
@@ -39,12 +39,8 @@
     @Override
     protected void updateComponent(final Component comp, final Graphics g) {
         if (comp != null) {
-            final LWComponentPeer peer = (LWComponentPeer) comp.getPeer();
-            if (peer != null) {
-                peer.paintPeer(g);
-            }
             super.updateComponent(comp, g);
-            flushBuffers(peer);
+            flushBuffers((LWComponentPeer) comp.getPeer());
         }
     }