klasscho

Start class

May 26th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. package com.packag;
  2.  
  3. import javax.swing.*;
  4.  
  5. public class Start {
  6.     public static void main (String[] args){
  7.         Game game = new Game();
  8.         JFrame window = new JFrame("2048");
  9.         window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  10.         window.setResizable(false);
  11.         window.add(game);
  12.         window.pack();
  13.         window.setLocationRelativeTo(null);
  14.         window.setVisible(true);
  15.         game.start();
  16.     }
  17. }
Add Comment
Please, Sign In to add comment