How can I display characters of the symbol font (ex: Arrow symbols... up and down arrows) on an applet?

John Zukowski

The symbols have a specific mapping into Unicode. You need to learn what their Unicode position is and use that. For instance, you'll find the arrows from 2190-2195. You'll then have to make sure you are using a font that supports them. For instance, bold Serif does, but plain doesn't. The following program demonstrates how to dipslay the arrows:

import java.awt.*;
import java.applet.Applet;

public class Arrow extends Applet {
  public void paint(Graphics g) {
    g.setFont(new Font("Serif", Font.BOLD, 25));
    g.drawString("u2190u2191u2192u2193u2194u2195", 20, 20);
If you would like help in finding characters for different fonts, check out the UnicodeDisplay program in the Java Examples in a Nutshell from O'Reilly at http://www.oreilly.com/catalog/jenut/examples/.