ui manager getColor and link JOptionpane OK button to code
Joined: Apr 03, 2011
Hi, Got most of this but having a couple of problems. How to assign color value to Strings "X" and "O" after the count and linking the OK button to code reseting the game. Any suggestions? Michael
Joined: Oct 13, 2005
Don't like it. doesn't look like object-oriented programming to me. You ought to have an array of buttons, and you should be adding a listener to each. Your listener can alter the text colour as well as the letter.