Previous | Next |
Using the Bean Wizard, you can generate default code for a Bean Works component very easily. You just need to provide some basic information for the component, for example, the name and source code directory.
To use the wizard to generate default code:
1. | Launch the Bean Wizard from the VisualAge WebRunner program group. |
---|---|
2. | Make sure "Create a New Project" is selected and press the "Next" button. |
3. | On the project screen, fill in the
Project Name field. The wizard uses this name to provide
defaults for the other fieldsclass and package
names, the 3-letter file extension, and the parent
directory for the project's source code (the wizard
creates a subdirectory named for your project). For
example, if you enter "MySample" as the project
name, the view is named "MySampleView," the
file extension is "mys," and so on. You can edit any of these other fields or accept the default. When you're happy with the project description, press the "Next" button. |
4. | The next screen lets you specify project options such as whether you want to add custom menus and what icon you want to use to represent your bean. To accept the defaults, press the "Next" button. |
5. | You'll see next a set of tabbed panels that allow you to customize and add code to the project. Because you're just creating a default component, press the "Next" button to get to the code generation screen. |
6. | The code generation screen provides a list in the left panel of all the files that will be generated for your component. You can click on any file to see a preview in the right panel. Press the "Generate All Files" button to actually generate the code for your component. |
Select any file in the Files view to preview the file's contents, or compile and run your component.
Previous | Next |
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.