private void connect() {
		String host, user, pass;
		int port;
		host = hostAddress.getText();
		try {
			port = Integer.valueOf(portNumber.getText());
		} catch (NumberFormatException e) {
			JOptionPane.showMessageDialog(this, I18n.getInstance().getString("cdPortFail"));
			return;
		}
		user = userName.getText();
		pass = String.valueOf(passWord.getPassword());
		
		if (host.equals("") || user.equals("") || pass.equals("")) {
			JOptionPane.showMessageDialog(this, I18n.getInstance().getString("cdInputFail"));
			return;
		}

		try {
			Client.getInstance().connect(host, port, user, pass);
		} catch (Exception e) {
			JOptionPane.showMessageDialog(this, I18n.getInstance().getString("cdConnectFail"));
			return;
		}

		this.dispose();
	}