posted 16 years ago
I am developing a game called Tic Tac Toe. I first made a standalone application and then converted it into a JApplet.
In my game i have a button called as "New Game". Whenever a user presses this button the game is started all over again. The problem is, i have written some logic for it, but it is not working.
The problem is, i dont know wat to put in the paint method. In my case all the logic is implemented in init() and actionPerformed() method. So my paint method is empty. And when i call repaint(), it is having no effect.
Which logic should come in the paint method?
Below is the code which i have written till now.
Enjoy, Chander
SCJP 5, Oracle Certified PL/SQL Developer