3 Replies Latest reply: May 27, 2008 10:15 AM by 807591 RSS

    Computing the bounding box of a string that will be drawn with Graphics

    807591
      Hello,

      is there a way to compute the width and height of a string that will be drawn with the Graphics class' drawString() method?
      I need to know the sizes my drawn string has, so that I can position the rest so that it won't overlap with the string.



      Greetings.