I\'m trying to write application which need to draw many strings using Graphics2D class in Java. I need to get sizes of each String object (to calculate exact p
Graphics2D
You might also want to check out SwingUtilities.computeStringWidth.
SwingUtilities.computeStringWidth