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
{
nf = new DecimalFormat("000.00");
value=0.0;
T1.setText("" + value + nf.format(value));
repaint();
} // endif
} // endif