Java Reference
In-Depth Information
LISTING 8.17
continued
DISPLAY
LISTING 8.18
//********************************************************************
// DotsPanel.java Author: Lewis/Loftus
//
// Represents the primary panel for the Dots program.
//********************************************************************
import
java.util.ArrayList;
import
javax.swing.JPanel;
import
java.awt.*;
import
java.awt.event.*;
public class
DotsPanel
extends
JPanel
{
private final int
SIZE = 6;
// radius of each dot
Search WWH ::
Custom Search