/[classpath]/classpath/javax/swing/plaf/ComponentUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/ComponentUI.java

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

revision 1.10 by mark, Sat Jul 2 20:32:50 2005 UTC revision 1.11 by rabbit78, Wed Oct 12 15:20:54 2005 UTC
# Line 40  package javax.swing.plaf; Line 40  package javax.swing.plaf;
40    
41  import java.awt.Dimension;  import java.awt.Dimension;
42  import java.awt.Graphics;  import java.awt.Graphics;
43    import java.awt.Rectangle;
44    
45  import javax.accessibility.Accessible;  import javax.accessibility.Accessible;
46  import javax.swing.JComponent;  import javax.swing.JComponent;
# Line 182  public abstract class ComponentUI Line 183  public abstract class ComponentUI
183      if (c.isOpaque())      if (c.isOpaque())
184      {      {
185        g.setColor(c.getBackground());        g.setColor(c.getBackground());
186        g.fillRect(0, 0, c.getWidth(), c.getHeight());        Rectangle clip = g.getClipBounds();
187          g.fillRect(clip.x, clip.y, clip.width, clip.height);
188      }      }
189      paint(g, c);      paint(g, c);
190    }    }
191        
     
192    /**    /**
193     * Determines the preferred size of a component. The default     * Determines the preferred size of a component. The default
194     * implementation returns <code>null</code>, which means that     * implementation returns <code>null</code>, which means that

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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