Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Game;
- import javax.swing.JFrame;
- import javax.swing.SwingUtilities;
- public class ThingMove {
- private String NAME = "Title";
- private int WIDTH = 500;
- private int HEIGHT = 470;
- public ThingMove() {
- JFrame frame = new JFrame(NAME);
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setSize(WIDTH, HEIGHT);
- frame.setLocationRelativeTo(null);
- frame.add(new Board());
- frame.setVisible(true);
- }
- public static void main(String[] args) {
- SwingUtilities.invokeLater(new Runnable() {
- @Override
- public void run() {
- new ThingMove();
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement