Permalink
Cannot retrieve contributors at this time
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?
Dot-Art/DotArt.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (31 sloc)
724 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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"); | |
} | |
} |