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

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

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

revision 1.1.2.1 by gnu_andrew, Tue Aug 2 20:12:38 2005 UTC revision 1.1.2.2 by gnu_andrew, Tue Sep 20 18:46:34 2005 UTC
# Line 1  Line 1 
1  /* MetalComboBoxButton.java  /* MetalComboBoxIcon.java
2     Copyright (C) 2005 Free Software Foundation, Inc.     Copyright (C) 2005 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
# Line 88  public class MetalComboBoxIcon implement Line 88  public class MetalComboBoxIcon implement
88     */     */
89    public void paintIcon(Component c, Graphics g, int x, int y)    public void paintIcon(Component c, Graphics g, int x, int y)
90    {    {
     // TODO: work out whether/how the icon changes with different component  
     //       states (and also different metal themes)  
91      Color savedColor = g.getColor();      Color savedColor = g.getColor();
92      g.setColor(Color.black);      if (c.isEnabled())
93          g.setColor(MetalLookAndFeel.getBlack());
94        else
95          g.setColor(MetalLookAndFeel.getControlDisabled());
96      for (int i = 0; i < 5; i++)      for (int i = 0; i < 5; i++)
97        g.drawLine(x + i, y + i, x + 9 - i, y + i);        g.drawLine(x + i, y + i, x + 9 - i, y + i);
98      g.setColor(savedColor);      g.setColor(savedColor);

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

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