Text Map Classes: How to Write a Text Map Class


A text map class implements the JavaStar API JSTextMapping interface, providing code for the computeText() method. The only requirements of this method are that it accepts a Component as a parameter, and that it returns a String containing the text name (or null).

How you determine the text name depends on your program. This example shows how a text map for Swing (part of the Java Foundation Classes) looks:




Send feedback to JavaStar-feedback@suntest.com
Copyright © 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303. All rights reserved.