@Override
	public void actionPerformed(ActionEvent e) {
		if (ClientConnectionManager.getInstance().getClient(hostname, port) == null) {
			try {
				ClientConnectionManager.getInstance().connect(hostname, port);
				setEnabled(false);
			} catch (UnknownHostException ex) {
				// TODO: report exception visually (a dialog for example)
				setEnabled(true);
			} catch (IOException ex) {
				setEnabled(true);
			}
		} else {
			ClientConnectionManager.getInstance().disconnect(hostname, port);
			setEnabled(true);
		}

	}