-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.java
More file actions
45 lines (34 loc) · 1.02 KB
/
Copy pathMain.java
File metadata and controls
45 lines (34 loc) · 1.02 KB
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
package gui;
import javax.swing.*;
import components.Branch;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
/**
*
* @author Nadav Ishai, ID: 206119893
*class Main represent the main frmae
*/
public class Main extends JFrame implements ActionListener{
private static final long serialVersionUID = 1L;
private Panels panel;
public static void main(String[] args) {
Main main_frame = new Main();
main_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Toolkit toolkit = Toolkit.getDefaultToolkit();
Dimension dimension = toolkit.getScreenSize();
main_frame.setBounds(dimension.width/2-600, dimension.height/2-350, 1200, 700);
main_frame.setVisible(true);
}
public Main() {
super("Post tracking system");
panel = new Panels(this);
add(panel);
panel.setVisible(true);
}
public Panels GetPanels() {
return panel;
}
public void actionPerformed(ActionEvent e){}
}