-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisplayGraph.java
More file actions
35 lines (25 loc) · 870 Bytes
/
DisplayGraph.java
File metadata and controls
35 lines (25 loc) · 870 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
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.Dimension;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
@SuppressWarnings("serial")
public class DisplayGraph extends JFrame {
public DisplayGraph(Graph graph) {
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setLocationRelativeTo(null);
setLayout(new BoxLayout(this.getContentPane(), BoxLayout.Y_AXIS));
GraphPanel graphPanel = new GraphPanel(graph);
this.add(graphPanel);
Dimension dimension = new Dimension(800, 600);
this.setPreferredSize(dimension);
this.pack();
}
@SuppressWarnings("unused")
private class ComputeHandler implements ActionListener {
public ComputeHandler() {
}
public void actionPerformed(ActionEvent e) {
}
}
}