Configuring BTT properties for Visual Beans

About this task
To configure BTT properties for Visual Beans, do the following:
  1. Open the visual class you created in Developing a new SWT Visual Beans Class.
  2. Click the OpCompTest composite, and in the Properties view, you can see the properties related to BTT.

    Screen capture showing the properties related to BTT

  3. 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.

    Screen capture showing the Java Property Editor

  4. 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.

    Screen capture showing the Java Property Editor

    1. Set the Kind of Formatter to be FloatFormatter.
    2. Set the Thousands Separator to be null.
    3. Set the Decimal Separator to be ..
    4. Set the Number of Decimals to be 9.
    5. Set the Error Message to be test message.
    6. Check the Euro - EMU Convertible checkbox
    7. Click OK. The code is generated automatically as follows:
      aBTTText.setFormatter(new FloatConverter("", "null", '.', 9, false));