Exercise 1: Creating the Calculator Project
Now that you've determined the design, you will create a project to keep track of the files that build your application. In this exercise, you will create an applet project named Calculator, which you will build using the Visual Java GUI builder. The GUI builder provides the tools you need to assemble a working application.
- Click the Projects

button on the Java WorkShop main toolbar.
The Java WorkShop Project Manager window is displayed.
- Check the project manager for the name of the current portfolio--the current portfolio name is shown in blue text.
If the current portfolio is not personal
, double-click on the personal portfolio name. If you do not have a personal portfolio, see Adding Your Personal Portfolio.
- In the Project Manager window, choose File -> New -> Project.
- In the Create Project wizard, select untitled and type Calculator in the project name box.
Make sure you capitalize the "C" in Calculator. Java is case-sensitive. The project name Calculator
follows the Java convention of initial capitalization.
- Make sure the Applet radio button is selected.
- Make sure the radio button for using the Visual Java GUI builder tool is selected.
- Click Next.
In this tutorial you should store the project in the default directory.
- Make sure the No radio button for existing files is selected.
- Click Next.
- Make sure the Use generated Html page radio button is selected.
- Click Finish.
The following actions occur:
- The source editor displays a template for you to use to create the Calculator project.
- The GUI builder palette appears below the Java WorkShop main toolbar. All components you need to create the GUI for the calculator are available in these tabbed pages.
- A separate layout window opens, displaying a 12-cell grid. The cells help you position components (such as text buttons and labels) accurately within your application.
- Java WorkShop adds the Calculator project to the project manager.
Next lesson:
- Exercise 2: Starting the Layout