public synchronized void addMessage(String line,boolean action){
  addLine(new TextMessage(System.currentTimeMillis(),line,action));
  numberOfMessages++;
  lastMessage=System.currentTimeMillis();
}

public synchronized void addMessage ( String line , boolean action ) { addLine ( new TextMessage ( System . currentTimeMillis ( ) , line , action ) ) ; numberOfMessages ++ ; lastMessage = System . currentTimeMillis ( ) ; }
adds a single chatmessage with the current time .
