Caracteres especiais

Marcos, teste o símbolo “para todo” da álgebra (caractere unicode 2200) e veja se consegue.

Este é um deles.

Fala,

Aí vai:

import java.awt.Font;
import java.awt.GraphicsEnvironment;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class SpecialCharater extends JFrame {

	private Font font;

	public SpecialCharater() {
		super("SpecialCharater");
		addListeners();
		checkFonts();
		if (font == null) {
			JOptionPane.showMessageDialog(
				this,
				"Não foi possivel achar fonte unicode",
				"ERRO",
				JOptionPane.ERROR_MESSAGE);
			System.exit(1);
		}
		initComponents();
		pack();
	}

	private void addListeners() {
		this.addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent event) {
				System.exit(0);
			}
		});
	}

	private void initComponents() {
		JPanel panel = new JPanel();
		JTextField label = new JTextField();
		label.setFont(font);
		label.setText("Character u2200");
		label.setColumns(10);
		panel.add(label);
		this.setContentPane(panel);
	}

	private void checkFonts() {
		String[] fonts =
			GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
		boolean found = false;
		for (int i = 0; i < fonts.length; i++) {
			System.out.println(fonts[i]);
			if (!found && fonts[i].equals("Arial Unicode MS")) {
				font = new Font("Lucida Sans", Font.PLAIN, 12);
				found = true;
			}
			if (!found && fonts[i].equals("Lucida Sans")) {
				font = new Font("Lucida Sans", Font.PLAIN, 12);
				found = true;
			}
		}
	}

	public static void main(String[] args) {
		SpecialCharater sc = new SpecialCharater();
		sc.setVisible(true);
	}
}

Mais info:
http://java.sun.com/j2se/1.3/docs/guide/imf/index.html
http://ppewww.ph.gla.ac.uk/~flavell/unicode/unidata27.html
http://www.microsoft.com/typography/property/property.htm
http://www.microsoft.com/typography/default.asp

[]'s

[/code]

Oops

Esqueci que a barra invertida não sai:

label.setText("Character u200");

[]'s

Caramba

label.setText("Character \u2200"); 

Pronto.

[]'s[/code]