public static int getMessageHeight(String message, Font font, Graphics2D g){
		g.setFont(font);
		if(message.length() == 0)
			return 0;
		TextLayout tl = new TextLayout(message, font, g.getFontRenderContext());
		return(int)tl.getBounds().getHeight();
		
		
	}