Adding Components to Your User Interface

This topic describes these ways to insert a component from the JDeveloper Component Palette into a UI container you create.

When you visually add a component in the Java Visual Editor, JDeveloper generates an instance variable for the component and adds it to the source code. When you delete a component, the Java Visual Editor deletes the associated lines from the code.

To add a component to your UI using the mouse:

  1. Create a container component.
  2. Choose the desired component list from the Component Palette dropdown menu.
  3. Click the desired component in the palette.
  4. To insert the selected component into the container, do one of the following:

To add a component to your container using only keystokes:

  1. Create a container component.
  2. Choose the desired component list from the Component Palette dropdown menu.
  3. To select a component from the palette, press the tab key to focus on the desired component, then press the spacebar to select the component.
  4. To insert the selected component into the container, press Enter.

    The inserted component appears in the top, lefthand corner of the UI container. You may use the Property Inspector to size and position the inserted component.

To add multiple instances of a component:

  1. Press the Shift key while clicking the component in the Component Palette. You may release the Shift key and the palette will still remain in multiple creation mode.

    Click the arrow tool in the Component Palette to turn off multiple object creation.


Customizing the Component Palette
Adding a JavaBeans Component to the Palette
Removing a Component from the Palette