Setting Component Properties at Design Time

The Properties page in the Property Inspector displays the properties of the component selections you make in the Java Visual Editor. You the Properties page to set the property values at design time for any component in your UI design.

To set a component's properties at design time:

  1. Select a component in the Java Visual Editor or in the Structure window. 
  2. To display the Property Inspector with the values for the selected component, choose View then choose Property Inspector or right-click the component in the Java Visual Editor and choose Property Inspector .
  3. Click the Properties tab of the Property Inspector to give it focus. 
  4. Scroll until the property you want is visible, then select it with the mouse or the arrow keys.

    OR

    Click Find Area button in the Property Inspector toolbar and type the name of the property in the text field. Press Enter to display the property in the Inspector.

  5. Enter the value in the right column one of the following ways:  

To set properties for multiple components:

  1. Do one of the following to select the group of components to be changed:
  2. To change the list of properties displayed by the Property Inspector, click the Union button in the Property Inspector toolbar:
  3. Select and edit the desired property in the Property Inspector. If the value is shown in italic font, that means the value belonging to the anchor component's value differs from the the other selected components. Editing the value of a shared property will cause all selected components to have the same value.

Note: The Ctrl key causes the selection state of the selected object to be toggled (from either not selected to selected, else from selected to not selected). Using the Shift key to make selections also changes the object's anchor usage:

Using either the Ctrl or Shift key, if a control goes from being not selected to selected, it will become the new anchor until the user changes the anchor using the Shift select action.


About Component Properties in the Inspector