Compare commits

...

2 Commits

Author SHA1 Message Date
zhe
848cdbe5d8 Merge remote-tracking branch 'origin/master' 2021-11-09 16:57:30 +01:00
zhe
be3e22ee94 Gui 2021-11-09 16:56:56 +01:00

19
src/Tetris/GameGui.java Normal file
View 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();
}
}