Description lies within the code.

I want the game to reset when i call the startup(), that's why all that isn't in the init().

There is no check for wins, losses, ties yet.

The problem is that when i press the reset button the game freezes. The buttons keep their labels and are disabled.

My first approach was to have TicTacToe class implementing ActionListener and the 2nd actionPerformed like this:

Code:
public void actionPerformed(ActionEvent e){
		
			if(e.getSource() == reset)
				startup();
			else
			for(int x = 0; x < button.length; x++){
....
but that resulted to the same problem


Code Below:

Code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

/*	This is a simple Tic Tac Toe Applet.
 *	This applet focuses on a 2 player game
 *	of Tic Tac Toe, there is no AI implemented.
 *
 *	@author 
 *
 */

public class TicTacToe extends JApplet {

	public JPanel grid, north;
	public JLabel lScore, lTurn;
	public int xScore, oScore, ties, count = 0;
	public boolean bTurn = true;
	public JButton reset;
	
	public JButton[] button = new JButton[9];
	

	/*	This could also be in the init() method but this way
	 *	i can call on the startup() method to reset the grid
	 *	and keep the scores.
	 */
	public void startup(){
		
		grid = new JPanel(new GridLayout(3,3));
		lTurn = new JLabel(" It's X's turn");
		north = new JPanel();
		reset = new JButton("Reset");
		reset.addActionListener(new Reset());
		
		
		for(int x = 0; x < 9; x++){
			button[x] = new JButton("");
			button[x].addActionListener(new Button());
			button[x].setFont(new Font("sansserif",Font.BOLD,100));
			grid.add(button[x]);
		}
		
		
		add(north, BorderLayout.NORTH);
		add(grid, BorderLayout.CENTER);
		add(lTurn, BorderLayout.SOUTH);
		north.add(reset, BorderLayout.NORTH);
		north.add(lScore, BorderLayout.CENTER);
			
		
		setSize(500, 500);
	}

	class Reset implements ActionListener{
		public void actionPerformed(ActionEvent e){
			startup();
		}
	}
	
	class Button implements ActionListener{
		public void actionPerformed(ActionEvent e){
		
			for(int x = 0; x < button.length; x++){
				if(e.getSource() == button[x]){
					System.out.println("Button "+ x + " has just been pressed");
					symbolCheck();
				
			
					if(bTurn == true){
						button[x].setText("X");
						lTurn.setText(" It's O's turn");
					}
					else{
						button[x].setText("O");
						lTurn.setText(" It's X's turn");
					}
					button[x].setEnabled(false);
				
				}
			}
		}
	}
	
	/*	This method checks what symbol should be set as text
	 *	on the button that has been clicked.
	 *	If you divide count by 2 and the result is not an int (contains decimals)
	 *	then it sets the text to "X", if the result is an int
	 *	it then sets it to "O".
	 */
	public boolean symbolCheck(){
		if(count==0 || count%2==0){
			bTurn = true;
			++count;
		}
		else{
			bTurn = false;
			++count;
		}
		
		return bTurn;
	}
	
	public void winCheck(){
	
		
	
	
	}
	
	public void init(){
	
		
		lScore = new JLabel(" X won " + xScore + " times    O won "+ oScore +" times    Tied Games: "+ ties);
		startup();
		
	}
}
I just need something to reset the grid but keep the score.
It's probably something minor that i can't see but i'd appreciate any help.

thanks in advance
/Spithaz