public void keyPressed(KeyEvent e) {
		
		if(displayedMenu == MENU_JOIN){//Ip entering code
			
			if(e.getKeyCode() == KeyEvent.VK_BACK_SPACE){
				if(IP.length() > 0){
					IP = IP.substring(0, IP.length() - 1);
				}
			} else if (((e.getKeyChar() >= 48 && e.getKeyChar() <= 57)
					|| (e.getKeyChar() == 46))
					&& IP.length() < 15){
				IP += Character.toString(e.getKeyChar());
			}
		}
	}