Java Reference
In-Depth Information
The executable code should look like the following:
package c3;
import java.awt.Frame;
public class ShipFrame extends Frame {
}
10.
Define the ShipFrame constructor such that a Shipment object must be passed and
assigned to a variable called ship.
11.
Define the ShipFrame title as Shipment Information, the size as 400 by 400, and position
the frame 50 pixels from the left and top of the screen.
12.
Create three labels and assign them to class variables called empLbl, dateTimeLbl,
and shipLbl.
13.
Define the labels' sizes and locations such that they will look like Figure 3-31 when
displayed.
Figure 3-31.
Search WWH ::




Custom Search