if ((ae.getSource() == start))
{
on = true;
counterThread = new Thread(this, "");
counterThread.start();
}
if ((ae.getSource() == stop))
{
on=false;
repaint();
}
if((ae.getSource() == reset))
{
if(on==false) // Don't want reset button to work if on is true
{
value=0;
T1.setText("" + value);
repaint();
} // endif
} // endif