Constructor
theStore = theStoreToUse;
setLayout( new BorderLayout() );
log = new Log( 30, 20 );
add( log, BorderLayout.CENTER );
add( runToggle, BorderLayout.SOUTH );
runToggle.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent e )
{
if( running )
{
running = false;
runToggle.setText( "Run" );
}
else
{
running = true;
runToggle.setText( "Stop" );
getRunner.interrupt();
}
}
});
getRunner = new Thread( this, "Getter" );
running = false;
getRunner.start();