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.
  1. Click the Project's button on the Java WorkShop main toolbar.
    The Java WorkShop Project Manager window is displayed.
  2. 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.
  3. In the project manager, choose File -> New -> Project.
    The Create Project wizard is displayed.
  4. 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.
  5. Click the Beans radio button.
  6. Click Next.
  7. Type help.tutorial.beans as the package name.
    You must provide a package name.
  8. 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.
  9. Click Next.
  10. 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
  11. Click Finish.

Next lesson:

Exercise 3: Building the Project