java.awt.Checkbox lacks setLabel

Pavel Roskin pavel_roskin at geocities.com
Mon Dec 21 10:54:38 PST 1998


Hello!

java.awt.Checkbox in JDK 1.1.7 has method setLabel. There is no such
method in Kaffe.
By the way, following patch makes ICQJava much happier (I don't say this
is the right patch which should be applied):

=================================
--- Checkbox.java.orig  Sun Dec 20 20:50:08 1998
+++ Checkbox.java       Mon Dec 21 10:25:51 1998
@@ -45,7 +45,10 @@
 }
 
 public Checkbox ( String label, boolean state, CheckboxGroup group) {
-       this.label = label;
+       if (label == null)
+               this.label = "";
+       else
+               this.label = new String( label);
        setCheckboxGroup( group);
        setState( state);
=================================

Pavel Roskin



More information about the kaffe mailing list