How Do I...

Step 11: Test Alarm Clock and save it

Step 10: Connect a part to the script No tip for this topic No example for this topic How Do I main menu

If you've completed steps 1 through 10, you've finished the application. Now the moment of truth!

Run and test your application

To see if AlarmClockApplication functions properly:

  1. Click on Test in an editor open on AlarmClockView. The displayed window should resemble the following:
    Alarm clock user interface
  2. Select a time from the spin buttons. Since you're testing, select a time that is a minute or so after your system clock's current time.
  3. Type a message in the Message to be shown field. You can enter a carriage return to move to the next line.
  4. Select Set Alarm. When your system's clock reaches the time you selected, the message box should open, resembling the following:
    Alarm clock message
  5. Select OK to close the message box. And, after you've finished testing, select Cancel to close the Alarm Clock window.

Saving the parts and connections

To ensure that you don't lose your work, select Save Part from the File menu.

You might also version AlarmClockView and then release it to AlarmClockApplication. To do this:

  1. Return to the VisualAge Organizer.
  2. In the Parts pane, select AlarmClockView.
  3. From the basic Parts menu, do the following:
    1. Select Version.
    2. In the displayed prompter, name the version--or keep the default 1.0--and select OK.
    3. Select Release.
  4. From the full Parts menu, do the following:
    1. Select Version > Use Defaults.
    2. Select Release > Current Version.

    In the Details or Flowed Icon views, you now see the version name.

Save your development image before you exit VisualAge. (From a File menu, select Save Image.) Then, the application will remain in the image and you'll be able to use it when you restart VisualAge.


[ Top of Page | Previous Page | Next Page | Table of Contents ]