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

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

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.4

      Description


      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: