This patch (committed) fixes the mask for the gradient paint on the slider thumb icons - one pixel was overwriting the thumb outline:

2006-06-13  David Gilbert  <[EMAIL PROTECTED]>

        * javax/swing/plaf/metal/MetalIconFactory.java
        (HorizontalSliderThumbIcon.gradientMask): Modified by 1 pixel to
        prevent overwriting border,
        (VerticalSliderThumbIcon.gradientMask): Likewise.

Regards,

Dave
Index: javax/swing/plaf/metal/MetalIconFactory.java
===================================================================
RCS file: 
/sources/classpath/classpath/javax/swing/plaf/metal/MetalIconFactory.java,v
retrieving revision 1.25
diff -u -r1.25 MetalIconFactory.java
--- javax/swing/plaf/metal/MetalIconFactory.java        11 May 2006 17:05:55 
-0000      1.25
+++ javax/swing/plaf/metal/MetalIconFactory.java        13 Jun 2006 21:02:19 
-0000
@@ -967,7 +967,7 @@
      * This mask is used to paint the gradient in the shape of the thumb.
      */
     int[][] gradientMask = new int[][] { {0, 12}, {0, 12}, {0, 12}, {0, 12},
-                                         {0, 12}, {0, 12}, {0, 12}, {1, 12},
+                                         {0, 12}, {0, 12}, {0, 12}, {1, 11},
                                          {2, 10}, {3, 9}, {4, 8}, {5, 7},
                                          {6, 6}};
 
@@ -1623,7 +1623,7 @@
      * This mask is used to paint the gradient in the shape of the thumb.
      */
     int[][] gradientMask = new int[][] { {0, 12}, {0, 12}, {0, 12}, {0, 12},
-                                         {0, 12}, {0, 12}, {0, 12}, {1, 12},
+                                         {0, 12}, {0, 12}, {0, 12}, {1, 11},
                                          {2, 10}, {3, 9}, {4, 8}, {5, 7},
                                          {6, 6}};
 

Reply via email to