JDK Version:1.2beta3-J
OS: Win95
When using setLabel method to set Checkbox's label, an unexpected information
string will be displayed. The string is:
UNTESTED Java_sun_awt_windows_WCheckboxPeer_setLabel.
========================CheckSetLabel.java====================================
import java.awt.*;
public class CheckSetLabel {
public static void main(String args[]) {
new CheckSetLabel();
}
public CheckSetLabel() {
Frame f = new Frame("Check Set Label");
Checkbox myCheckbox = new Checkbox("My Checkbox");
f.add(myCheckbox);
f.pack();
f.setVisible(true);
for (int i = 0; i < 100; i ++) {
myCheckbox.setLabel("Menu is " + i);
}
/*
f.setVisible(false);
f.dispose();
System.exit(0);
*/
}
}
jim.hu@prc 1998-03-05
OS: Win95
When using setLabel method to set Checkbox's label, an unexpected information
string will be displayed. The string is:
UNTESTED Java_sun_awt_windows_WCheckboxPeer_setLabel.
========================CheckSetLabel.java====================================
import java.awt.*;
public class CheckSetLabel {
public static void main(String args[]) {
new CheckSetLabel();
}
public CheckSetLabel() {
Frame f = new Frame("Check Set Label");
Checkbox myCheckbox = new Checkbox("My Checkbox");
f.add(myCheckbox);
f.pack();
f.setVisible(true);
for (int i = 0; i < 100; i ++) {
myCheckbox.setLabel("Menu is " + i);
}
/*
f.setVisible(false);
f.dispose();
System.exit(0);
*/
}
}
jim.hu@prc 1998-03-05