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.
- Locate the SwingSet component in the Explorer window by expanding
the tutorial node, then the lookandfeel node.
- Right-click the SwingSet class in the Explorer window and choose
Copy from the contextual menu.
- 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.
- Right-click the swingSet1 node and choose rename from the contextual menu. Type swingSet
in the text field and click OK.
- Choose File
Save All to save your work.
Legal Notices