[PATCH] Do not clear the background here
Ingo Proetel
proetel at aicas.com
Fri Jun 12 07:54:03 PDT 2009
# 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);
- }
}
More information about the caciocavallo-dev
mailing list