--- a/jdk/src/share/classes/java/awt/Label.java Mon Jul 07 16:32:38 2008 +0400
+++ b/jdk/src/share/classes/java/awt/Label.java Mon Jul 07 17:24:21 2008 +0400
@@ -1,5 +1,5 @@
/*
- * Copyright 1995-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * Copyright 1995-2008 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -257,8 +257,8 @@
}
// This could change the preferred size of the Component.
- if (testvalid && valid) {
- invalidate();
+ if (testvalid) {
+ invalidateIfValid();
}
}