Java Reference
In-Depth Information
4.
Click the Run button.
This will save the new launch information and run c3.EmployeeApp. The result should look like Figure 3-4 .
Notice anything not quite right?
Figure 3-4.
The text in the label is cut off (the last letter is missing). We'll have to increase the width of the label to fit the text.
5.
Click the maximize button (in the upper right corner of the frame, to the left of the close
button. The close button is the red button with a white x).
The Employee frame expands to take up the entire visible screen area and the maximize button is replaced with
a restore down button. How did that happen? You didn't code anything to do that. This is the power of using the
Frame class. All these functions were already defined in the Frame class. When the Employee frame was instantiated
(created), it automatically got those functions.
6.
Click the restore down button.
The Employee frame returns to its defined size.
7.
Click the close button.
Uh-oh.
A lot of functionality was acquired by the Employee Frame object (from the Frame class), but control of the close
button was not. This is a function that the programmer has to add to the frame object (in the future). Before that,
however, we have to end the program manually using RAD. When an application is running in RAD, there is a very
easy way to terminate the program from the console pane.
If the console pane is not displayed, click Window , Show View , and then Console to display
the console.
8.
On occasion, you will find that certain views are not displayed (whether you inadvertently closed them or not is
not the issue). Simply go to the Show View menu and select the view you would like to see. The views can be moved to
different locations on the window by simply clicking and dragging on the view tab.
 
Search WWH ::




Custom Search