forked from srinathr91/TestJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGame1.java
More file actions
16 lines (14 loc) · 418 Bytes
/
Game1.java
File metadata and controls
16 lines (14 loc) · 418 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import javax.swing.JFrame;
public class Game1 {
public static void main(String[] args) {
JFrame frame = new JFrame("Mini Tennis");
frame.setSize(1000, 1000);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
/**
* Re-locating position of x,y
* (0,0) in C-application= (0,1000) in java application
* (x,y) in C-application= (x, 1000-y) in java application.
*/
}
}