Advertisement
Guest User

Untitled

a guest
Mar 16th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. FRAME
  2.  
  3. package OurGame;
  4.  
  5. import javax.swing.*;
  6.  
  7. public class Frame {
  8.  
  9. public Frame(){
  10. JFrame frame = new JFrame();
  11. frame.add(new Board());
  12. frame.setTitle("2-D Test Game");
  13. frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  14. frame.setSize(700,365);
  15. frame.setVisible(true);
  16. frame.setLocationRelativeTo(null);
  17. }
  18. public static void main(String[] args){
  19. new Frame();
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement