Exercise 7: Building and Running the Project
In this exercise, you will build the Calculator project. You will then generate an HTML file that runs the Calculator project.
- Click the Build button
on the main toolbar.
Java WorkShop compiles the Calculator.java program into the Calculator.class file of bytecode. The Build tab, below the source editor, displays a "Build Succeeded" message when the build is complete. You should not get any error messages in the source code. If you mistyped one of the button names, fix the error as follows:
- Select the button in the layout window.
- Type the correct name in the name box in the attribute editor and click Apply.
- Rebuild the project.
- Click the Run button
on the main toolbar.
Java WorkShop generates the HTML file Calculator.tmp.html in your project directory. The HTML file includes the
Next lesson:
You have completed the exercises in this tutorial. The next tutorial is Tutorial 8: Creating the Clock Project.
More GUI builder examples:
- Exercise 1: Making Your Own Card File
- Exercise 2: Adding Behavior to the Card File
- Exercise 3: Adding a Mail Dialog, Part 1
- Exercise 4: Adding a Mail Dialog Box, Part 2