/** * Handle the event * * @param ae The event */ public void actionPerformed(ActionEvent ae) { String cmd = ae.getActionCommand(); if (cmd.equals(CMD_CONNECT)) { doConnect(); } else { super.actionPerformed(ae); } }