-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCatalogFrame.java
More file actions
37 lines (26 loc) · 869 Bytes
/
CatalogFrame.java
File metadata and controls
37 lines (26 loc) · 869 Bytes
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
package ui;
import javax.swing.*;
import java.awt.*;
public class CatalogFrame extends JFrame {
private GraphForm form;
private CatalogList list;
private ui.ControlPanel control;
public CatalogFrame() {
super("Visual Graph Manager");
init();
}
private void init() {
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
this.setSize(600, 600);
this.getContentPane().setLayout(new BorderLayout());
this.form = new GraphForm(this);
this.getContentPane().add(BorderLayout.NORTH, form);
this.list = new CatalogList();
this.getContentPane().add(BorderLayout.CENTER, list);
this.control = new ControlPanel(this);
this.getContentPane().add(BorderLayout.SOUTH, control);
form.setOpaque(true);
// this.pack();
this.setVisible(true);
}
}