Java Reference
In-Depth Information
LISTING 8.15
continued
DISPLAY
LISTING 8.16
//********************************************************************
// RocketPanel.java Author: Lewis/Loftus
//
// Demonstrates the use of polygons and polylines.
//********************************************************************
import
javax.swing.JPanel;
import
java.awt.*;
public class
RocketPanel
extends
JPanel
{
private int
[] xRocket = {100, 120, 120, 130, 130, 70, 70, 80, 80};
private int
[] yRocket = {15, 40, 115, 125, 150, 150, 125, 115, 40};
private int
[] xWindow = {95, 105, 110, 90};
private int
[] yWindow = {45, 45, 70, 70};
Search WWH ::
Custom Search