Java Reference
In-Depth Information
6.
Change all the subclasses of UsefulFrame so that the setHeaderLabelLocation method
is executed.
7.
Remove all source code in ShipmentFrame that dealt with headerLbl.
Results of the Challenge Exercise
Let's check it worked:
1.
One new project called CE with a package called c4.
2.
CE/src/c4 should have eleven classes, one of which is HeaderLabel, defined as specified
above.
3.
UsefulFrame, EmployeeFrame, and ShipmentFrame modified to display the TNT header
label horizontally centered on the frame.
Check that the Exercise Was Done Correctly
To finish the chapter, let's see everything:
1.
Run both EmployeeApp and ShipmentApp and confirm that the TNT header label
appears.
2.
Change the width of either EmployeeFrame or ShipmentFrame, run the application,
and confirm that the TNT header label is centered on the frame.
For instance, changing EmployeeFrame to 650 in width would result in Figure 4-24 .
Figure 4-24.
 
Search WWH ::




Custom Search