Compare commits
2 Commits
8fcee3f4e7
...
848cdbe5d8
Author | SHA1 | Date | |
---|---|---|---|
|
848cdbe5d8 | ||
|
be3e22ee94 |
19
src/Tetris/GameGui.java
Normal file
19
src/Tetris/GameGui.java
Normal file
@ -0,0 +1,19 @@
|
||||
package Tetris;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
|
||||
public class GameGui {
|
||||
public static final int width= 445, height =629;
|
||||
private JFrame window;
|
||||
|
||||
public GameGui(){
|
||||
window = new JFrame("Tetris");
|
||||
window.setSize(width,height);
|
||||
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
window.setResizable(false);
|
||||
window.setVisible(true);
|
||||
}
|
||||
public static void main(String [] args){
|
||||
new GameGui();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user