Hey Ben Wood,
thanks a lot for your answer. I kept searching the
JAVA API for quite some time before posting here - unfortunately I did not "discover" the FontMetrics stringWidth() method.
Thank you so much, you helped me a lot!
@David: I was not quite sure whether to post in the AWT or in the SERVLETS forum ... thanks for moving the question to the right place!