This adds a repaint() and revalidate() call to JLabel.setText(). This is
backed up by a Mauve testcase that I've written.
2005-10-19 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/JLabel.java
(setText): Call revalidate() and repaint().
/Roman
Index: javax/swing/JLabel.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JLabel.java,v
retrieving revision 1.27
diff -u -r1.27 JLabel.java
--- javax/swing/JLabel.java 6 Oct 2005 19:44:51 -0000 1.27
+++ javax/swing/JLabel.java 19 Oct 2005 15:25:43 -0000
@@ -475,12 +475,14 @@
{
if (text != newText)
{
- String oldText = text;
- text = newText;
- firePropertyChange("text", oldText, newText);
+ String oldText = text;
+ text = newText;
+ firePropertyChange("text", oldText, newText);
- if (text != null && text.length() <= displayedMnemonicIndex)
- setDisplayedMnemonicIndex(text.length() - 1);
+ if (text != null && text.length() <= displayedMnemonicIndex)
+ setDisplayedMnemonicIndex(text.length() - 1);
+ revalidate();
+ repaint();
}
}
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches