I use drawString() method to draw string using Graphics, but I want to center my text in a rectangle. How should I do that?

Edit
Report