@leeappelbaum/

Sierpinski2

Java Swing

No description

fork
loading
Files
  • Main.java
  • DrawSierpinski.java
  • Point.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import javax.swing.*;
import java.awt.*;

class Main
{
    public static void main (String[] args)
    {
        JFrame theGUI = new JFrame();
        theGUI.setTitle("Sierpinski");
        theGUI.setSize(600, 600);
        theGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        DrawSierpinski ds = new DrawSierpinski(Color.black);
        Container pane = theGUI.getContentPane();
        pane.add(ds);
        theGUI.setVisible(true);
    }
}