Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4117276

When using setLabel to change a Checkbox's label, unexpected string printed.

XMLWordPrintable

    • 1.2fcs
    • x86
    • windows_95
    • Verified

      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

            jkoenigsunw Janet Koenig (Inactive)
            jhusunw Jim Hu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: