fp.bugs: 2991 - Checkbox.setLabel() generates a motif warning.

XMLWordPrintable

    • sparc
    • solaris_2.4


      When a checkbox is added to an applet and then its label is changed using setLabel()
      it generates a warning (and infact the label remains unchanged).

      Here is the result of executing CheckboxTest2.java from the AWT test suite.

      [284] [awt] ? appletviewer CheckboxTest2.html
      thread applet-CheckboxTest2.class find class CheckboxTest2
      Opening stream to: file:/home/vijay/jdk-ws/src/share/test/awt/CheckboxTest2.class to get CheckboxTest2
      Warning:
          Name: WrongLabel1
          Class: XmToggleButton
          Invalid XmNlabelString - must be a compound string

      Warning:
          Name: WrongLabel1
          Class: XmToggleButton
          Invalid XmNlabelString - must be a compound string
      ^C

      However if the buttons are added to a panel which is then added to the applet,
      and then its label is changed, the motif warning doesnt appear and the label change
      works fine.

      Vijay

            Assignee:
            Anne Fowler (Inactive)
            Reporter:
            Vijay Srinivasan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: