After testing several applets, I noticed that there were NPEs caused by
JLabel. Sun passes in an empty string for text in the constructors that
do not take text as a parameter. I fixed this.
2006-05-04 Lillian Angel <[EMAIL PROTECTED]>
* javax/swing/JLabel.java
(JLabel): Pass in an empty string for the text parameter.
(JLabel): Likewise.
(JLabel): Likewise.
Index: javax/swing/JLabel.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JLabel.java,v
retrieving revision 1.31
diff -u -r1.31 JLabel.java
--- javax/swing/JLabel.java 4 May 2006 13:28:59 -0000 1.31
+++ javax/swing/JLabel.java 4 May 2006 19:06:43 -0000
@@ -344,7 +344,7 @@
*/
public JLabel()
{
- this(null, null, LEADING);
+ this("", null, LEADING);
}
/**
@@ -355,7 +355,7 @@
*/
public JLabel(Icon image)
{
- this(null, image, CENTER);
+ this("", image, CENTER);
}
/**
@@ -368,7 +368,7 @@
*/
public JLabel(Icon image, int horizontalAlignment)
{
- this(null, image, horizontalAlignment);
+ this("", image, horizontalAlignment);
}
/**