The border of JLabel should not be painted in BasicLabelUI.paint(). If
there is a border to be painted (which normally isn't in JLabel), then
this is performed in JComponent.paint().
2005-08-17 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/plaf/basic/BasicLabelUI.java
(paint): Don't paint the border here. If there is a border to
be painted, this is usually performed in JComponent.paint().
/Roman
Index: javax/swing/plaf/basic/BasicLabelUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicLabelUI.java,v
retrieving revision 1.17
diff -u -r1.17 BasicLabelUI.java
--- javax/swing/plaf/basic/BasicLabelUI.java 17 Aug 2005 08:51:30 -0000 1.17
+++ javax/swing/plaf/basic/BasicLabelUI.java 17 Aug 2005 09:35:01 -0000
@@ -178,9 +178,6 @@
if (icon != null)
icon.paintIcon(b, g, ir.x, ir.y);
- if (b.getBorder() != null)
- b.getBorder().paintBorder(b, g, tr.x, tr.y, tr.width, tr.height);
-
if (text != null && !text.equals(""))
{
if (b.isEnabled())
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches