public void closing() { chatRoom.removeFileDropListener(this); chatRoom.getChatInputEditor().removeKeyListener(this); chatRoom.removeClosingListener(this); sendFileButton.removeActionListener(this); sendScreenShotButton.removeActionListener(this); } }