public void render(Screen screen){	
		for(int ya = y; ya < y + h; ya++){
			for(int xa = x; xa < x + w; xa++){
				int col = 0xff7d7d7d;
				if(xa == x || ya == y || xa == x + w - 1 || ya == y + h - 1){
					if(selected) col = 0xffffffff;
					else col = 0xffbfbfbf;
				}
				screen.renderPixel(xa, ya, col);
			}
		}
		
		
		if(password){
			String pass = "";
			for(int i = 0; i < text.length(); i++) pass = pass + "x";
			font.render(pass, x, y + 1, 0xffffffff, 1, true, screen);
		}else{
			font.render(text, x, y + 1, 0xffffffff, 1, true, screen);
		}
	}