-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplication.java
More file actions
32 lines (25 loc) · 793 Bytes
/
Application.java
File metadata and controls
32 lines (25 loc) · 793 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
import javax.swing.JFrame;
/**
* This application enables the user to input a message and encode it with a
* password then after the user sends the message to another user the second
* user can decode the message with the password
*
*/
public class Application {
// the frame width
public static int FRAME_WIDTH = 470;
// the frame height
public static int FRAME_HEIGHT = 470;
/**
* Main method sets up the JFrame that holds our view
*
* @param args
*/
public static void main(String[] args) {
JFrame tetrisFrame = new JFrame("Encoding and Decoding");
tetrisFrame.add(new View());
tetrisFrame.setSize(FRAME_WIDTH, FRAME_HEIGHT);
tetrisFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
tetrisFrame.setVisible(true);
}
}