-
Notifications
You must be signed in to change notification settings - Fork 0
/
test code
34 lines (28 loc) · 1012 Bytes
/
test code
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
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package GUIProject;
/**
* Class description:
* this is a test class for the GuesssingGame class
* This class will create the Application object, set the default close operation, set
the window size and make the window visible as requested by challenge 4 document.
*
*
* @author joelkavanagh(22336168)
* @version 20/03/23
*/
import javax.swing.JFrame;
public class GuessingGameTest {
public static void main(String[] args) {
// create an instance of the Application class
GuessingGame game = new GuessingGame();
// set the default close operation
game.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// set the window size
game.setSize(600, 400);
// make the window visible
game.setVisible(true);
}
}