Index: javax/swing/JComponent.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JComponent.java,v retrieving revision 1.66 diff -u -r1.66 JComponent.java --- javax/swing/JComponent.java 10 Oct 2005 08:53:27 -0000 1.66 +++ javax/swing/JComponent.java 10 Oct 2005 12:21:02 -0000 @@ -1536,6 +1536,7 @@ if (g.hitClip(bounds.x, bounds.y, bounds.width, bounds.height)) continue; + boolean translated = false; try { @@ -2333,6 +2334,10 @@ */ public void setVisible(boolean v) { + // No need to do anything if the actual value doesn't change. + if (isVisible() == v) + return; + super.setVisible(v); Container parent = getParent(); if (parent != null)