import javax.swing.JFrame; /** * This class represents a GUI for the basic lines and points program. * Not much work is done here; the majority of the interesting behavior is * found in the LineCanvas class. * @author Marty Stepp * @version CSE 331 Spring 2011, 5/11/2011 */ public class LineGui { private JFrame frame; private LineCanvas canvas; /** * Constructs the GUI and displays it on the screen. */ public LineGui() { canvas = new LineCanvas(); frame = new JFrame("CSE 331 Lines"); frame.setLocation(300, 100); frame.setSize(400, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.add(canvas); frame.setVisible(true); } }