public void run(){
  while (true) {
    try {
      dispatchEvents();
    }
 catch (    Throwable t) {
      if (Printer.err)       t.printStackTrace();
    }
  }
}

public void run ( ) { while ( true ) { try { dispatchEvents ( ) ; } catch ( Throwable t ) { if ( Printer . err ) t . printStackTrace ( ) ; } } }
a loop to dispatch events .
