Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- import java.awt.*;
- import java.awt.event.*;
- /**
- * Write a description of class TicTacToe here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class TicTacToe extends JFrame
- {
- public static void main( )
- {
- SwingUtilities.invokeLater(
- new Runnable( )
- {
- public void run( )
- {
- new TicTacToe( );
- }
- }
- );
- }
- public TicTacToe( )
- {
- super( "Tic Tac Toe" );
- getContentPane( ).add( new Spielfeld( ) );
- pack( );
- setVisible( true );
- setDefaultCloseOperation( EXIT_ON_CLOSE );
- }
- }
Add Comment
Please, Sign In to add comment