-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFamilyTree.java
38 lines (31 loc) · 1021 Bytes
/
FamilyTree.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
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
/**
* The FamilyTree Program.
*
* @Destiny Zhu, Melory So, Coco Kneer
* @05/15/2018
*/
public class FamilyTree
{
private static Family family;
public static void main(String[] args){
family = new Family();
JFrame frame = new JFrame ("Family Tree");
//frame.setSize(1000,1000);
frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
JTabbedPane tabbedPane = new JTabbedPane();
InfoPanel panel1 = new InfoPanel();
tabbedPane.addTab("About",panel1);
AddMemberPanel panel2 = new AddMemberPanel(family);
//InfoPanel panel2 = new InfoPanel();
tabbedPane.addTab("Add Member",panel2);
TreePanel tree = new TreePanel(family);
tabbedPane.addTab("Tree",tree);
frame.getContentPane().add(tabbedPane);
frame.pack();
frame.setVisible(true);
}
}