log.error(ex);
System.err.println(ex);
    public void actionPerformed(ActionEvent e) {	String     command=e.getActionCommand();	if("Clear".equals(command)) {	    if(no_channel) {		clearPanel();		return;	    }	    sendClearPanelMsg();	}	else if("Leave & Exit".equals(command)) {	    if(!no_channel) {		try {		    control_channel.close();		}		catch(Exception ex) {		    log.error(ex);		}		try {		    data_channel.close();		}		catch(Exception ex) {		    log.error(ex);		}	    }	    mainFrame.setVisible(false);	    mainFrame.dispose();	    System.exit(0);	}	else	    System.out.println("Unknown action");    }