-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.0
-
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
- duplicates
-
JDK-1233741 retitling checkboxes does not work
- Closed