Home | Articles

Tutorial on Styled Text

The Java 2D Text APIs are part of the Java Foundation Classes (JFC), and come in the Java Development Kit (JDK) 1.2 download. Java 2D Text is fun and easy to use, and you will find a wide range of 2D Text capabilities in the enhanced java.awt.Font class and the new java.awt.font package.

Because the Java 2D Text APIs provide a wealth of functionality, this tutorial focuses on what you need to know to use the java.awt.font.TextLayout class to create exciting, interesting, and interactive styled text in any language supported by the Unicode character set. This is the bulk of the functionality provided by this API, and after going through this tutorial, you should have enough information to explore the remaining functionality on your own.

Course Outline

© 1994-2005 Sun Microsystems, Inc.