Preview example Java™ beans or import them into your projects.
About this task
Use the Java Bean Examples wizard to:
- Preview examples from the wizard without loading any classes into the
workbench IDE
- Create a new project in the workspace and import the example source
To run examples from the Java Bean Examples wizard:
Procedure
- Click .
- Select .
- Click Next to launch the Java Bean
Examples wizard. The wizard lists a number of beans in the left pane; when
you select a bean, a brief description appears in the right pane. All the
examples of that bean are shown in the Java Bean Examples section.
The first example listed is automatically selected.
- Select a bean to read the description.
- Select an example to read the example description.
- Click Run to preview the example in the
wizard.
Results
You can preview as many examples as you want, and the wizard does
not add anything to your workspace. The only example that you cannot run inside
the wizard is the RecordIOManagerSample, which you have to import to the workspace
first.
To create a new project containing the examples:
- Click Next to go to the second page of the wizard.
Use this page to create a new project containing the examples.
- Type a name in the Project name field.
- Click the check box to use a default workspace location for the project,
or click Browse to specify a different location.
- Click Finish.
The wizard creates a new Java project in the workspace and imports
all the bean example source into this project. The class path of the project
is set to include the JAR files required by the examples. A progress monitor
at the bottom of the wizard indicates the progress of the project creation
and the import.