View Single Post
Old Dec 5th, 2005, 6:42 PM   #1
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 4 Writlaus is on a distinguished road
drawString size?

I am creating my own button class in an applet, and I'm planning to use the g.drawString() method, but I need to know the size of the text when it's drawn to know how big to draw the border around it. Are there any methods that return the size a given string would be if it were to be drawn?
Writlaus is offline   Reply With Quote