Guest User

Untitled

a guest
Apr 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. import javax.swing.*;
  2. import java.awt.*;
  3. import java.awt.event.*;
  4. /**
  5. * Write a description of class TicTacToe here.
  6. *
  7. * @author (your name)
  8. * @version (a version number or a date)
  9. */
  10. public class TicTacToe extends JFrame
  11. {
  12. public static void main( )
  13. {
  14. SwingUtilities.invokeLater(
  15. new Runnable( )
  16. {
  17. public void run( )
  18. {
  19. new TicTacToe( );
  20. }
  21. }
  22. );
  23. }
  24.  
  25. public TicTacToe( )
  26. {
  27. super( "Tic Tac Toe" );
  28. getContentPane( ).add( new Spielfeld( ) );
  29. pack( );
  30. setVisible( true );
  31. setDefaultCloseOperation( EXIT_ON_CLOSE );
  32. }
  33. }
Add Comment
Please, Sign In to add comment