Java > Core SWING advanced programming > 5. BI-DIRECTIONAL TEXT
Chapter 5. BI-DIRECTIONAL TEXT
Topics in this Chapter
Bi-Directional Text
Physical Fonts
Bi-Directional Text and the Caret
With the introduction of the Java 2D application programming interface (API), Java 2 provides enhanced text handling facilities that you can take advantage of using the Swing text components. A complete discussion of Java 2D would be well beyond the scope of this book, so in this cha0pter, we'll focus on one specific piece of the Java 2D functionality that is exposed by the Swing text components and that you can easily make use of: bi-directional text. As you'll see, the support provided by the text package for text that might not all be read in a single direction is sufficiently comprehensive that, as a developer, most of the time you can take it for granted that the consequences of using it are taken care of for you. The material in this chapter explains how the text components handle bi-directional text and the differences that the user will see when it is in use.