Exercise 9: Modifying Clock

In this exercise, you will make a change to the Clock bean and rebuild the bean. When you are done, the version of Clock.jar in the Beans project will be different than the version in the DeskClock GUI project.
  1. Open the Project Manager window and double-click the project name Clock in the project list.

    If you did not quit the DeskClock project after the previous exercise, you will be asked if you want to save and quit the current project; click Save and Quit. Click Switch in the next dialog box to change projects.

  2. After the Clock project is opened, open the Clock.java file by double-clicking on Clock.java (in the Clock project file list) in the project manager.
  3. In the source editor, scroll to this line in Clock.java:
    monthFont = new Font("Helvetica",Font.ITALIC,8);
    and change the font size of 8 to 12.

    If you cannot edit , check to see that you have changed the permissions for the file.

  4. Click Save on the Edit/Debug toolbar to save your edits.
  5. Click Build on the main toolbar to compile your file.

Next lesson:

Exercise 10: Updating DeskClock