Name: sdR10048 Date: 02/04/2002
JDK1.4rc92
java.awt.Checkbox method
public String getLabel()
returns "" string if checkbox has no label.
But null is expected here as spec says.
See demo test.
Spec says:
----------
public String getLabel()
Gets the label of this check box.
Returns:
the label of this check box, or null if this check box has no label.
See_Also:
setLabel(java.lang.String)
Demo test:
----------
import java.awt.*;
public class Test {
public static void main(String[] args) {
System.out.println("\""+(new Checkbox()).getLabel()+"\"");
}
}
Demo output:
----------
[archer] ~/tmp
% java Test
""
======================================================================