c is the container
btnPlayAgain.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand().equals("PlayAgain")) {
c.remove(panelTicTacToe);
c.repaint();
c.add(panelTicTacToe);
}
}
});
anyway of Updating the panel back like when the game first starts?
Edited by mariob316, 06 December 2010 - 09:08 PM.
Got it


Sign In
Create Account

Back to top









