[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-caciocavallo-dev
Subject:    [PATCH] Do not clear the background here
From:       proetel () aicas ! com (Ingo Proetel)
Date:       2009-06-12 14:54:03
Message-ID: 43cffc5aff565d62cc15.1244818443 () AZIRAPHALE
[Download RAW message or body]

# HG changeset patch
# User Ingo Proetel <proetel at aicas.com>
# Date 1244817283 -7200
# Node ID 43cffc5aff565d62cc1586ab4efeab707b884a8a
# Parent  e0ecd7f156e630dda6512458af8d09e3dd350f83
Do not clear the background here.

diff -r e0ecd7f156e6 -r 43cffc5aff56 src/share/classes/sun/awt/peer/cacio/CacioPanelPeer.java
--- a/src/share/classes/sun/awt/peer/cacio/CacioPanelPeer.java	Fri Jun 12 16:34:43 2009 +0200
+++ b/src/share/classes/sun/awt/peer/cacio/CacioPanelPeer.java	Fri Jun 12 16:34:43 2009 +0200
@@ -31,21 +31,4 @@
         awtComponent.setFont(font);
          * */
     }
-
-    @Override
-    protected void peerPaint(Graphics g, boolean update) {
-        // We need to clear the background, because we have no Swing component
-        // to do it for us.
-        Insets i = getInsets();
-        int cx = i.left;
-        int cy = i.top;
-        int cw = getAWTComponent().getWidth() - i.left - i.right;
-        int ch = getAWTComponent().getHeight() - i.top - i.bottom;
-        Color bg = UIManager.getColor("Panel.background");
-        Color old = g.getColor();
-        g.setColor(bg);
-        g.clearRect(cx, cy, cw, ch);
-        g.setColor(old);
-        super.peerPaint(g, update);
-    }
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic