Exercise 7: Editing the Beans
Before saving the layout, you will change a few of the basic
attributes of each bean.
- In the layout window, double-click the Clock bean to open the
attribute editor.
- Delete the dateColor value, #00c800 (dark green), and type
royalblue in the dateColor box.
- Change the timeColor from yellow to green.
- Click Apply to establish the changes to Clock.
- Double-click the Marquee bean to see the attributes for Marquee in
the attribute editor.
- Change the foreground from red to orange.
- 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).
- Click Apply to establish the changes to Marquee.
- Select the SoundPlayer bean name in the Windows list to see the
attributes for SoundPlayer in the attribute editor.
- In the audioFilename box, delete beep.au and type
clink.au.
- Click OK to establish the changes to SoundPlayer and to close the
attributes editor.
- 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