import javax.swing.*; import javax.swing.tree.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; class IRCGuiListener implements ActionListener, ListSelectionListener, TreeSelectionListener, DocumentListener { public void actionPerformed(ActionEvent ae) { System.out.println(ae); } public void valueChanged(ListSelectionEvent lse) { System.out.println(lse); } public void valueChanged(TreeSelectionEvent e) { System.out.println(e); } public void insertUpdate(DocumentEvent e) { System.out.println(e); } public void removeUpdate(DocumentEvent e) { System.out.println(e); } public void changedUpdate(DocumentEvent e) { System.out.println(e); } public void textChanged(String action) { System.out.println(action); } }