|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTicTacToe.Button
class TicTacToe.Button
Class that is implemented by the 9 buttons in the grid. Checks the source of the aev to recognize the button that was clicked and then checks what symbol is to be set as the label for that button. Also checks if someone has managed to get 3 in a row on each click wich in turn adds to the winners score, or adds to the ties counter and then disables the rest of the buttons.
Constructor Summary | |
---|---|
TicTacToe.Button()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent aev)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
TicTacToe.Button()
Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent aev)
actionPerformed
in interface java.awt.event.ActionListener
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |