Cleaning up
You have finished placing all of the components that you will need for the simple text editor. You will now clean up the extra empty spaces, and do a little decorating.
- Toward the top of the Composer window is the part list. It is a Choice field which contains the names of all of the parts that you have just created. From the part list select 'flow3'. The properties for the Flow Layout appear in the Composer window.
- On the Flow Layout Properties page, de-select 'Show empty panel'. The empty panel in the Flow Layout disappears, leaving only the three buttons.
- Choose 'border1' from the part list. De-select 'Show empty panel'. The remaining empty panels in the Border Layout disappear.
- Click on button4 to display its properties. Change the 'Button Text' from 'button4' to 'New'.
- Click on the remaining two buttons and change their text to 'Load' and 'Save', respectively.
- From the part list choose flow3. From the flow3 properties notebook, choose the second page, labelled 'Visual'. This page exists for every component and allows you to specify a variety of visual properties of your components. By setting the visual properties of a Layout, the changes will cascade through all of the components in the Layout. (AWT Buttons overide their initial colors by default, so trying to change the background or foreground color of the layout will not have an effect on the buttons.)
- In the Font box, change the Name to 'Dialog', change the size to 16, and change the Style to 'Bold'. This changes the font of all of the buttons.
- Change the cursor to 'hand'. This specifies that the cursor should appear as a hand whenever the mouse is over the Flow Layout.
- Save your changes again by choosing Save from the File menu in the Composer window.
| Data Representations, Inc. http://www.datarepresentations.com support@datarepresentations.com sales@datarepresentations.com |