The code snippet below displays special characters:
import java.awt.*;
public class TestUnicode extends java.applet.Applet {
public static final String COPYRIGHT = "\u00a9";
public static final String REGISTERED = "\u00ae";
public void init () {
setLayout(new FlowLayout());
Label a = new Label(COPYRIGHT + " ABC");
Label b = new Label(REGISTERED + " Software");
add(a);
add(b);
}
}