Adding Swing Components

Now you can test the RadioButtonGroupPanel bean. First, you must add more components (at least one more) to the form. To get started (and save time), you can add the SwingSet component included with this tutorial. This component is a JPanel containing a few Swing components and a method for updating the user interface for a new look and feel.

  1. Locate the SwingSet component in the Explorer window by expanding the tutorial node, then the lookandfeel node.

  2. Right-click the SwingSet class in the Explorer window and choose Copy from the contextual menu.

  3. Right-click the form background and choose Paste from the contextual menu.

    The Component Inspector now includes a node named swingSet1 for the SwingSet component.

  4. Right-click the swingSet1 node and choose rename from the contextual menu. Type swingSet in the text field and click OK.

  5. Choose File Save All to save your work.

Next: Connecting Components using the Connection Wizard
Back: Adding a Custom JavaBeans Component

Legal Notices