/[classpath]/classpath/javax/swing/JComponent.java
ViewVC logotype

Diff of /classpath/javax/swing/JComponent.java

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

revision 1.66 by rabbit78, Mon Oct 10 08:53:27 2005 UTC revision 1.67 by rabbit78, Mon Oct 10 12:22:37 2005 UTC
# Line 1534  public abstract class JComponent extends Line 1534  public abstract class JComponent extends
1534          if (oldClip == null)          if (oldClip == null)
1535            oldClip = bounds;            oldClip = bounds;
1536    
1537          if (g.hitClip(bounds.x, bounds.y, bounds.width, bounds.height))          if (!g.hitClip(bounds.x, bounds.y, bounds.width, bounds.height))
1538            continue;            continue;
1539    
1540          boolean translated = false;          boolean translated = false;
1541          try          try
1542            {            {
# Line 2333  public abstract class JComponent extends Line 2334  public abstract class JComponent extends
2334     */     */
2335    public void setVisible(boolean v)    public void setVisible(boolean v)
2336    {    {
2337        // No need to do anything if the actual value doesn't change.
2338        if (isVisible() == v)
2339          return;
2340    
2341      super.setVisible(v);      super.setVisible(v);
2342      Container parent = getParent();      Container parent = getParent();
2343      if (parent != null)      if (parent != null)

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67

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