Bean Wizard
Generating and running code
The final wizard panel lets you generate and preview code for
each of the classes and interfaces you have defined. After
generating code, you can compile and run the component, or edit
the code using any source code editor.

- To preview code, just select the file you want to
preview. The code appears in the Preview area on the
right.
- To generate code, press the Save button. See Generated Files
for a description of each type of file that is generated.
After generating code you can easily extend your
project, but you will need to manually edit any code you want
to remove or modify.
The code generated by the Wizard contains comments in many
places that identify where you need to add custom code, for
example:
// Insert code to perform any view initialization
Caution:
The code generated by the wizard contains comments lines that
are used if you reload the project into the wizard. These
comments have the form //[append
XXX]. Do not remove these lines from your source
code.
- To run your component, click on the Run button. Your code
must have compiled successfully before this action is
enabled.
Generated Files
The wizard generates files for the following project classes:
- A view and controller class, and a model class if your
component has a data model.
- A GUIHandler class if you want to add custom menus or
user interface event management.
- A selection class to enable specification of your model
data and to provide clipboard support, if you enabled
clipboard support.
- Each interface and class you specified on the Interfaces
and Classes panels.
- Each command you specified on the Commands panel.
- An event class and an event listener interface for each
event you specified on the User Events panel.
- A resources class containing information about the
component, such as its name. You can edit this class to
add additional information, such as a version and
copyright statement.
- Default BeanInfo. You can customize this class to add new
property tags.
The wizard also generates the following files:
- The WizGen.java interface, implemented by some classes in
the project to allow them to interact with the wizard
correctly. You don't need to use this class directly at
all. Do not remove the file from the project
directory--if you do, you won't be able to reopen the
project with the wizard.
- An html file you can use to run your component as an
applet.
- A build.bat file for the
project that you can use to compile the project from the
command line.
- A makefile for the project that you can use to build the
project from command line (only on NT & Win'95 in
this release)
- A run.bat file for the
project that you can use to set your environment
variables and launch the component from the command line.
- A makeJar.bat file you
can use to generate a JAR file for your bean. Use this if
you want to load your bean into the Bean Tester or
another builder tool.
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.