Modifying Code Generation for a Property

You can have properties of components on your form initialized in more flexible way than just setting static values. The IDE enables you to initialize property values from:

To modify the initialization code generated for a component's property:

  1. In the Component Inspector, select the property (on the Properties tab) for which you would like to modify the initialization code.
  2. Click the ellipsis (...) button to bring up the Property Editor dialog box.
  3. If the Property Editor contains tabs, select the Form Connection tab.
  4. In the Property Editor, select the type of initialization code you would like to add (Value, Bean, Property, Method Call, or User Code). Add your custom initialization code in the field provided. If you choose Bean, Property, or Method Call, you can select from a list of valid options.
  5. Click OK.
Tip You can also place custom code before or after a property's initializer. Follow steps 1 and 2 above, and then click the Advanced button to bring up the Advanced Initialization Code dialog box. Type your custom pre-initialization code, post-initialization code, or both in the fields provided.
See also
Modifying Code Generation for a Component
Modifying Code Generation for a Form

Legal Notices