extract Listeners from ChatWindow.java into gui.listeners