Exercise 2: Creating the Clock Project
Using the files you copied in the last exercise, you will create a bean project to build the beans used to construct the clock application. You will create the project using the Create Project wizard.
- Click the Project's 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.
- In the project manager, choose File -> New -> Project.
The Create Project wizard is displayed.
- In the Create Project wizard, select untitled and type Clock in the project name box.
Make sure you capitalize the "C" in Clock. Java is case-sensitive.
- Click the Beans radio button.
- Click Next.
- Type
help.tutorial.beans
as the package name.
You must provide a package name.
- Click the Yes radio button to add existing files to the project.
This is where the files that you copied in Exercise 1 are indicated.
- Click Next.
- Click Add All in Directory.
Make sure all of these files are added:
Clock.java
Clock.gif
ClockBeanInfo.java
ClockIcon16.gif
ClockIcon32.gif
Marquee.java
MarqueeBeanInfo.java
SoundPlayer.java
SoundPlayerBeanInfo.java
SoundPlayerIcon16.gif
SoundPlayerIcon32.gif
beep.au
clink.au
gong.au
- Click Finish.
Next lesson:
- Exercise 3: Building the Project