Adding Beans

We will now add the components (beans) that make up our little example applet. Looking at the proposed GUI we see that we will need

The right part of the window (the tools area) contains three panels that we will need in the following:

  1. First resize the tools area:
  2. Change the global layout of the applet from BorderLayout to Null Layout:

    This allows to place all components directly with the mouse.

  3. Make sure that you are in selection mode:
  4. Now add the labels to the form:
  5. Finally add the three text fields (JTextField icon for JTextFieldbean) and the four buttons (JButton icon for JButtonbean).

If you have added a wrong bean, you can delete it by choosing Delete from its context menu, either directly in the form area or from the inspector.

The result should look like similar to this: