-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSprintTyper.java
More file actions
34 lines (30 loc) · 895 Bytes
/
SprintTyper.java
File metadata and controls
34 lines (30 loc) · 895 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
// Krishay
// 5/16/22
// SprintTyper.java
// This file contains a JFrame and adds a JPanel that is the main holder of all
// the panels of the game.
import javax.swing.JFrame;
// Main class for the JFrame.
public class SprintTyper
{
public SprintTyper()
{
}
public static void main(String [] args)
{
SprintTyper sprintType = new SprintTyper();
sprintType.run();
}
// When the program is ran, an instance of the holder class is created.
public void run()
{
JFrame frame = new JFrame("Sprint Typer");
frame.setSize(1028, 600);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLocation(50, 50);
frame.setResizable(false);
SprintTyperHolder sprintTypePan = new SprintTyperHolder();
frame.getContentPane().add(sprintTypePan);
frame.setVisible(true);
}
}