synchronized protected void timeout(){
  JOptionPane.showMessageDialog(null,"Timeout talking to SPROG","Timeout",JOptionPane.ERROR_MESSAGE);
  state=State.IDLE;
}

synchronized protected void timeout ( ) { JOptionPane . showMessageDialog ( null , "Timeout talking to SPROG" , "Timeout" , JOptionPane . ERROR_MESSAGE ) ; state = State . IDLE ; }
internal routine to handle a timeout
