Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
/**
* 2102: DotArt class is the main program.
*
* @author (Greg Johnson)
* @version (November 1,2017)
*/
import java.awt.*;
import javax.swing.*;
public class DotArt extends JFrame
{
DrawingPanel _theDrawingPanel;
/**
* Constructor for objects of class MyApp
*/
public DotArt(String title)
{
super(title);
this.setSize(1000, 800);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// create and add Panels to the Frame
this.add(new DrawingPanel());
this.setVisible(true);
}
/**
* The mainline program.
*/
public static void main(String[] args)
{
DotArt da = new DotArt("2102 Dot Art");
}
}