Exercise 7: Editing the Beans

Before saving the layout, you will change a few of the basic attributes of each bean.
  1. In the layout window, double-click the Clock bean to open the attribute editor.
  2. Delete the dateColor value, #00c800 (dark green), and type royalblue in the dateColor box.
  3. Change the timeColor from yellow to green.
  4. Click Apply to establish the changes to Clock.
  5. Double-click the Marquee bean to see the attributes for Marquee in the attribute editor.
  6. Change the foreground from red to orange.
  7. Change the value of rate (the scrolling speed) from 25 to 10 (acceptable values are 1 through 50, with 50 being the fastest scrolling speed).
  8. Click Apply to establish the changes to Marquee.
  9. Select the SoundPlayer bean name in the Windows list to see the attributes for SoundPlayer in the attribute editor.
  10. In the audioFilename box, delete beep.au and type clink.au.
  11. Click OK to establish the changes to SoundPlayer and to close the attributes editor.
  12. Choose GUI -> Save Generate GUI File to save the layout and generate .java files for the project.

Next lesson:

Exercise 8: Adding Operations to DeskClock