import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
public class ClientClass extends Thread implements ActionListener
{
int counter;	

public void run()
   {	
	System.out.println("Client starting");
	Timer clientTimer = new Timer(1000, this);
	clientTimer.start();
	}  // end run()

public void actionPerformed ( ActionEvent e )	
	{
	System.out.println("\nClient counter = " + counter++);
	if (counter == 10)
	  {
	  System.out.println("Client changing string value to EXIT");
	  commClass.ClientToServer = "exit";
	  } 
	} // end actionPerformed

} // end class
