Java Reference
In-Depth Information
14.
Change the ShipFrame constructor such that the data is retrieved from the Shipment
object and formatted to appear in the labels as in Figure 3-31 .
15.
Change ShipmentApp so that it does not invoke the display method but instead creates
an instance of ShipFrame and passes the Shipment variable shipObj to ShipFrame's
constructor.
Results of the Review Exercise
Here are the results:
1.
One new package called c3 in ReviewEx project with three classes.
2.
One new class called ShipFrame in c3 created as defined above.
3.
Shipment and ShipmentApp modified as defined above.
Check that the Exercise Was Done Correctly
Finally, let's check the results:
1.
Using RAD, verify that the new project c3 and class ShipFrame were created in the Review
Exercise project.
2.
Run ShipmentApp.
3.
Verify that the frame is positioned and the contents displayed as in Figure 3-31 .
 
Search WWH ::




Custom Search