Java 2D Text gives you the functionality you need to present
application text in more interesting and user friendly ways.
The
java.awt.font.TextLayout
class lets you correctly and
easily display static or editable graphical text in a wide range of modern,
classical, and historical languages. It can correctly measure and
position text with multiple text styles, calculate the insertion point,
handle bidirectional and foreign langauge text, and divide a paragraph
into lines.
Monica Pawlan,
a staff writer for the Java Developer
ConnectionSM (JDC), is
author of Essentials of the Java Programming Language: A Hands-On
Guide (Addison-Wesley, 2000), and co-author of Advanced Programming
for the Java 2 Platform (Addison-Wesley, 2000).
Reader Feedback
Tell us what you think of this article.