/** * Changes the chat Room * * @param topic The room to Join */ public void setTopic(Topic topic) { txtChat.setText(""); lblGroupName.setText(topic.name()); }
/** * To Be Called to show the window * * @param topic To Join the specific chat room */ public void open(Topic topic) { lblGroupName.setText(topic.name()); txtChat.setText(""); this.setVisible(true); }