Configuring BTT properties for Visual Beans
About this task
To configure BTT properties for Visual Beans, do the following:
Open the visual class you created in
Developing a new SWT Visual Beans Class
.
Click the
OpCompTest
composite, and in the Properties view, you can see the properties related to BTT.
Click
aBTTText
in the visual class, and then click
BTT_formatter
in the Properties view. Click the
icon, and the
Java Property Editor
pops up.
Click
aBTTText
in the visual class, and then click
BTT_formatter
in the Properties view. Click the
icon, and the
Java Property Editor
pops up.
Set the
Kind of Formatter
to be
FloatFormatter
.
Set the
Thousands Separator
to be
null
.
Set the
Decimal Separator
to be
.
.
Set the
Number of Decimals
to be
9
.
Set the
Error Message
to be
test message
.
Check the
Euro - EMU Convertible
checkbox
Click
OK
. The code is generated automatically as follows:
aBTTText.setFormatter(new FloatConverter("", "null", '.', 9, false));
Parent topic:
Tasks