public void close(){
  running=false;
synchronized (histData) {
    histData.notify();
  }
}

public void close ( ) { running = false ; synchronized ( histData ) { histData . notify ( ) ; } }
terminate the thread that autoscrolls the text .
