Sun Java Solaris Communities My SDN Account Join SDN
 
Tutorials & Code Camps

2D Text Tutorial

 
Training Index


[<<BACK][CONTENTS]

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 Connection (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).