public class TicTacToeGui
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
TicTacToeGui.Listener
The listener interface for this gui.
|
Constructor and Description |
---|
TicTacToeGui() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(TicTacToeGui.Listener listener)
Adds a listener to the gui.
|
javax.swing.JPanel |
getPanel()
Returns a game panel.
|
void |
update(TicTacToeModel model)
Updates the gui with the current model state.
|
public javax.swing.JPanel getPanel()
public void update(TicTacToeModel model)
model
- The game model.public void addListener(TicTacToeGui.Listener listener)
listener
- The listener to add.