/[classpath]/classpath/javax/swing/plaf/basic/BasicLabelUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicLabelUI.java

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

revision 1.10.2.2 by gnu_andrew, Tue Aug 16 16:22:38 2005 UTC revision 1.10.2.3 by gnu_andrew, Sat Sep 10 15:31:51 2005 UTC
# Line 177  public class BasicLabelUI Line 177  public class BasicLabelUI
177    
178      if (icon != null)      if (icon != null)
179        icon.paintIcon(b, g, ir.x, ir.y);                icon.paintIcon(b, g, ir.x, ir.y);        
180    
181      if (text != null && !text.equals(""))      if (text != null && !text.equals(""))
182      {      {
       g.setColor(b.getBackground());  
   
       if (b.isOpaque())  
         g.fillRect(vr.x, vr.y, vr.width, vr.height);  
       else  
       {  
         g.fillRect(tr.x, tr.y, tr.width, tr.height);  
         if (b.getBorder() != null)  
           b.getBorder().paintBorder(b, g, tr.x, tr.y, tr.width, tr.height);  
         b.setBorder(null);  
       }  
   
183        if (b.isEnabled())        if (b.isEnabled())
184          paintEnabledText(b, g, text, tr.x, tr.y + fm.getAscent());          paintEnabledText(b, g, text, tr.x, tr.y + fm.getAscent());
185        else        else

Legend:
Removed from v.1.10.2.2  
changed lines
  Added in v.1.10.2.3

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