Text rending is sone using drawString method in Graphics class as: void drawString( String str, int i, int j) this draws the string str with i,j as the coordinates of the baseline of the first character in the string. the above method can be used in conjunction with the getGraphics() method of the component class to solve your problem.
"dhirajsrivastava" The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements. Thanks.