/[classpath]/classpath/javax/swing/plaf/metal/MetalUtils.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/metal/MetalUtils.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by rabbit78, Wed Oct 19 13:46:03 2005 UTC revision 1.6 by rabbit78, Tue Nov 15 14:05:30 2005 UTC
# Line 129  class MetalUtils Line 129  class MetalUtils
129    
130      // Prepare the texture.      // Prepare the texture.
131      TexturePaint texture =      TexturePaint texture =
132        new TexturePaint(pattern2D, new Rectangle2D.Double(0., 0., 4., 2.));        new TexturePaint(pattern2D, new Rectangle2D.Double(0., 0., 4., 4.));
133      g2d.setPaint(texture);      g2d.setPaint(texture);
134      g2d.fillRect(x, y, w, h);      g2d.fillRect(x, y, w, h);
135    }    }
# Line 139  class MetalUtils Line 139  class MetalUtils
139     */     */
140    static void initializePattern(Color light, Color dark)    static void initializePattern(Color light, Color dark)
141    {    {
142      pattern2D = new BufferedImage(4, 4, BufferedImage.TYPE_INT_RGB);      pattern2D = new BufferedImage(4, 4, BufferedImage.TYPE_INT_ARGB);
143      lightColor = light;      lightColor = light;
144      darkColor = dark;      darkColor = dark;
145      Graphics g = pattern2D.getGraphics();      Graphics g = pattern2D.getGraphics();

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26