-
Notifications
You must be signed in to change notification settings - Fork 3
/
Main.java
46 lines (35 loc) · 1.33 KB
/
Main.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
46
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Karen
*/
import javax.swing.JFrame;
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
new GameView(30,30);//makes new ButtonGrid with 2 parameters
JFrame frame = new JFrame();
LoginView view = new LoginView();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(view);
frame.pack(); //sets appropriate size for frame
frame.setVisible(true); //makes frame visibled
JFrame frameLobby = new JFrame();
LobbyView viewLobby = new LobbyView();
frameLobby.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frameLobby.add(viewLobby);
frameLobby.pack(); //sets appropriate size for frame
frameLobby.setVisible(true); //makes frame visibled
JFrame frameLeader = new JFrame();
LeaderboardView viewLeader = new LeaderboardView();
frameLeader.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frameLeader.add(viewLeader);
frameLeader.pack(); //sets appropriate size for frame
frameLeader.setVisible(true); //makes frame visibled
}
}