• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TicTacToe in Java

 
Gustavo Siqueira
Ranch Hand
Posts: 97
C++ Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all!
I'm creating one game simple in Java!
One Tic Tac Toe.
Desire know how to create the "O" and "X"

Please, give ideas ?
See:





I'm on way sure ?
Good bye!
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gustavo Hackum wrote:
Desire know how to create the "O" and "X"

Use JLabel or JButton with O/X
Use ImageIcon for O/X (You can combine the icons with the label/button)

If my memory serves me right the JDK used to come bundled with some demo applications/applets, and one of them was tic tac toe. You might want to check that. It should be somewhere under JDK_HOME/samples or JDK_HOME/examples or something similar.
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use ImageIcon for O/X

Or just a large font and "O" / "X"
 
Gustavo Siqueira
Ranch Hand
Posts: 97
C++ Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you by suggestions!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic