-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTreeRecursion.java
45 lines (42 loc) · 1.26 KB
/
TreeRecursion.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//------------------------ TreeRecursion.java -----------------------
import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
/**
* TreeRecursion -- Tree exercise lab.
*
* @author rdb
* Last edit
* 03/16/14 rdb: made checkstyle compatible
*/
public class TreeRecursion extends JFrame
{
//---------------------- instance variables ----------------------
//--------------------------- constructor -----------------------
/**
* Constructor.
* @param title String frame title
*/
public TreeRecursion( String title )
{
super( title );
GUI gui = new GUI();
add( gui );
this.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
this.pack();
this.setSize( new Dimension( gui.getWidth() + 300,
gui.getHeight() + 100 ) );
this.setVisible( true );
}
//--------------------- main -----------------------------------------
/**
* main starts up the application.
* @param args String[] command line args -- not used.
*/
public static void main( String[] args )
{
TreeRecursion app = new TreeRecursion( "Tree Recursion Lab" );
}
}