Java Reference
In-Depth Information
Figure 4-2.
Lookin' good, but there are some potential problems. Let's find them.
Tutorial: Making the Superclass More Flexible
Now we have to find the problems with the current code:
1.
In EmpFrame, uncomment the setBounds statement.
2.
Save the EmpFrame source code and run EmployeeApp.
Notice anything missing? That's right, no exit button.
3.
Click and drag the lower right corner of EmpFrame to make it larger.
Notice that when the frame is enlarged, the exit button is shown (see Figure 4-3 ).
 
Search WWH ::




Custom Search