public void setChat(Chat chat) {
   chatComponent.setChat(chat);
 }
 public void addLine(String line) {
   chatComponent.addLine(line);
 }