@Override
	public void actionPerformed(ActionEvent arg0) {
		input = address.getText().trim();
		if (input.equals("")) return;
		if (input.length() - input.replace(":", "").length() != 1) return;

		InetSocketAddress check = null;
		try {
			check = new InetSocketAddress(input.split(":")[0], Integer.parseInt(input.split(":")[1]));
		} catch (Exception e) {
			return;
		}
		if (check == null || check.isUnresolved()) return;

		{// it should happen ONLY if all the checks return false
			setVisible(false);
		}
	}