Java Reference
In-Depth Information
Challenge Exercise
After a shipment is received, each individual item in the shipment needs to be recorded and placed into a sorted box/
carton. The box/carton will hold many items of the same product type and, eventually, will be put into the inventory
stockroom. For now, we will create a Sort Item frame to identify which shipment the item came from and the box
number the item is placed in. In addition, the frame will keep a running total of the number of items in the shipment.
1.
In the CE/src, create a new package called c5.
2.
Copy the following into CE/c5 and overwrite any duplicate classes:
All the classes in CE/c4
ReviewEx/c5.EnterShipInfo
ReviewEx/c5.ShipmentApp
Tutorial/c5.EnterEmpInfo
Tutorial/c5.TNTButton
Tutorial/c5.ExitButton
3.
In CE/c5, change the UsefulFrame exit button location calculation as you did in the
tutorial.
4.
Create a new visual class called SortItem that is a subclass of UsefulFrame and looks like
Figure 5-14 when first displayed.
Figure 5-14.
 
Search WWH ::




Custom Search