TicTacToe game question....IMPORTANT

I am, at my Dad's request, trying to make a tic-tac-toe game. I have two questions. My first question is: what is an easy way to set font sizes, and placement on an applet. Also, is there a way to have the mouseListener listen for a range of values? I'm asking because I have squares that the user will click to indicate their move. Once the square is clicked I will have code to draw an "X" on it. Then I will have the computer move accordingly. I'm rather confused as to the best way to do this in Java... I've done this in Qbasic and VisualBasic.

any and all suggestions would be greatly appriciated.

[627 byte] By [Dilandu] at [2007-9-26 3:12:12]
# 1

Some hints:

- make the squares actual buttons

- use a gridlayout

- if you want to run it as an applet, use your browser a lot and early for testing instead of the appletviewer. You'll have to stick to 'old jave' (1.1 i think) to make it halfway browser compatible or install the java plugin.

Spieler

spieler at 2007-6-29 11:20:26 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 2
Doesn't that game come as a sample with the JDK? Look under the demo/applets/TicTacToe directory...
jsalonen at 2007-6-29 11:20:26 > top of Java-index,Archived Forums,New To Java Technology Archive...