Hi there,
this makes the BasicListUI update its layout also when the list itself
has been invalidated since the last update.
2006-01-10 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/plaf/basic/BasicListUI.java
(maybeUpdateLayoutState): Also update the layout state, if the
list has been invalidated since the last update.
/Roman
Index: javax/swing/plaf/basic/BasicListUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicListUI.java,v
retrieving revision 1.49
diff -u -r1.49 BasicListUI.java
--- javax/swing/plaf/basic/BasicListUI.java 5 Jan 2006 22:53:17 -0000 1.49
+++ javax/swing/plaf/basic/BasicListUI.java 10 Jan 2006 13:12:51 -0000
@@ -894,7 +894,7 @@
*/
protected void maybeUpdateLayoutState()
{
- if (updateLayoutStateNeeded != 0)
+ if (updateLayoutStateNeeded != 0 || !list.isValid())
{
updateLayoutState();
updateLayoutStateNeeded = 0;
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches