Community
Participate
Working Groups
Build Identifier: 1.4.0.20110601-1304 Here is an example snipped: IManagedForm managedForm = new ManagedForm(parent); ScrolledForm scrolledForm = managedForm.getForm(); Form form = scrolledForm.getForm(); form.setText("TEST1 & TEST2"); Only "TEST1" is displayed, the rest is cut off. If I replace the & with something like #, "TEST1 # TEST2" is displayed. Reproducible: Always
Flavio, if you want to visualize the '&' character you should use double '&' in the string like: form.setText( "TEST1 && TEST2" ); Read Label#setText JavaDoc for more details. Nevertheless, text cut off (wrapping) is a bug. The space for the label (calculated by Label#computeSize) is smaller and the text wraps.
Ivan thanks for pointing that out! I didn't notice that in the RCP application it didn't get displayed as well.
I found that actually this bug is a duplicate of bug 371360. A single '&' character is replaced with a space, resulting in multiple spaces between words. *** This bug has been marked as a duplicate of bug 371360 ***