Editing Component Properties

See Also

The Inspector window displays the current selection on the Form Editor. The Properties window, which is located below the Inspector window, displays the properties of the selected component.

If multiple components are selected, their common properties are displayed and property modifications apply to all selected components.

To edit a component's properties:

  1. Select the component in the Inspector window or Form Editor.
  2. Set its properties in the Properties window. If a property has an ellipsis (...) button, click the button to open a special property editor, which enables you to modify the property and the initialization code generated for the property.
  3. The first mode in the property editor's Select Mode combo box is a custom editor for the property, if a custom editor is available. For example, the custom editor for the Model property of the JTable component enables you to set the number of table rows and columns, table titles, object types, and default values.

    For some properties, more than one custom editor might be available. In this case, all but the last mode in the Select Mode combo box are custom editors. For example, string properties have two custom editors: one for editing the string, and one for editing the resource bundle (for localization).

    The last mode of the Select Mode combo box is always the Form Connection property sheet, which you can use to generate code for the property.

To change a property value back to its default:

Tip You can also edit text label properties for common components directly in the Form Editor.
See Also
Editing Component Labels
Inspector Window
Modifying Code Generation for a Property

Legal Notices