/[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.16 by langel, Tue Aug 9 18:18:44 2005 UTC revision 1.17 by rabbit78, Wed Aug 17 08:51:30 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);        
     if (text != null && !text.equals(""))  
     {  
       g.setColor(b.getBackground());  
180    
181        if (b.isOpaque())      if (b.getBorder() != null)
182          g.fillRect(vr.x, vr.y, vr.width, vr.height);        b.getBorder().paintBorder(b, g, tr.x, tr.y, tr.width, tr.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    
184        if (text != null && !text.equals(""))
185        {
186        if (b.isEnabled())        if (b.isEnabled())
187          paintEnabledText(b, g, text, tr.x, tr.y + fm.getAscent());          paintEnabledText(b, g, text, tr.x, tr.y + fm.getAscent());
188        else        else

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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