Java Reference
In-Depth Information
Again, if you are unsure of how to do this, refer to the EmpFrame constructor. (Note that the names of the labels
in EmpFrame are different from EmployeeFrame.)
4.
At the end of the initialize method, invoke the method that recalculates the exit button
location.
If you are unsure of the statement syntax, refer to the EmpFrame constructor.
5.
Switch back to the design pane, select the frame, and in the Properties view, change the
visible property value to true.
Note where VE places the setVisible statement.
6.
Save the EmployeeFrame source code.
Now we need to change the application to use EmployeeFrame instead of EmpFrame.
7.
In EmployeeApp, change the last statement so that an EmployeeFrame object is created,
not an EmpFrame object.
8.
Format and save the EmployeeApp source code then run EmployeeApp.
The frame should look like Figure 4-13 .
Figure 4-13.
9.
Click the Exit button to shut down the application.
 
Search WWH ::




Custom Search