Code example for Paint

Methods: getFontMetricsInt

0
		} 
		return words1;
	} 
	 
	public int getHeight(){ 
		int a = Math.abs(paint.getFontMetricsInt().ascent);
		int b = paint.getFontMetricsInt().descent;
		return  a + b + format.getLineSpacing();
	} 
	 
	public void replaceStringContent(String s){
		this.data = s+" ";
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java