You can use the palette or the choose component dialog to add components
to your Java class.
To add a component from the palette to the Design view:
- Select the component that you want to add to your Java class by
doing one of the following steps:
- Left-click a component in the palette of the Design view.
- Click the down arrow next to the Choose component icon in the toolbar,
and select a component from the list.
- Click Choose component in the palette to open
the Choose component window. Enter the name of the
component. As you type, the dialog displays available and valid classes in
the Java build path for your current Java project. Valid classes have a null
constructor rather than the static getInstance() pattern. Select a component
and click OK.
- Move your pointer over the Design view to the point where you want
to add the component. The mouse pointer will show a plus sign when it is positioned
over a valid drop location. Depending on the position where you are dropping
the component and which layout managers are being used, if any, you might
see other visual cues to help you see where the component will be added.
- Left-click the design to add the component.
The Design view shows a visual representation of the component, and
the Source view shows the Java code that is generated as you add the component.