Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FRAME
- package OurGame;
- import javax.swing.*;
- public class Frame {
- public Frame(){
- JFrame frame = new JFrame();
- frame.add(new Board());
- frame.setTitle("2-D Test Game");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setSize(700,365);
- frame.setVisible(true);
- frame.setLocationRelativeTo(null);
- }
- public static void main(String[] args){
- new Frame();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement