Java Reference
In-Depth Information
7.
Change the actionPerformed method to move the data from ship to the three labels
(just as ShipFrame did).
In the ShipmentApp source code:
8.
Change ShipmentApp so that a ShipmentFrame object is created, not ShipFrame.
Results of the Review Exercise
Now we have:
•
In the ReviewEx project, one new package called c4 with six classes.
•
One new visual class called ShipmentFrame specified as above.
•
ShipmentApp modified as specified above.
Check that the Exercise Was Done Correctly
Finally, let's check that it all worked:
1.
Run c4 ShipmentApp. The results should appear as in Figure
4-22
.
Figure 4-22.
2.
Click the display button. The results should appear as in Figure
4-23
.