//UnicodeTest.java import java.awt.*; import javax.swing.*; public class UnicodeTest extends JApplet { public void init() { JTextArea mytextarea = new JTextArea(10,60); //optional: rows,cols mytextarea.setLineWrap( true ); mytextarea.setFont( new Font("Courier",Font.BOLD,18) ); String input = JOptionPane.showInputDialog( "Unicode range start" ); int low = Integer.parseInt( input ); input = JOptionPane.showInputDialog( "Unicode range end" ); int high = Integer.parseInt( input ); if (low>high || low<0 || high>65535) { JOptionPane.showMessageDialog(null, "BAD input. within 0-65535 only"); System.exit(1); } int count=-1; for (int i=low; i<=high; i++) { if (++count%32 == 0) mytextarea.append("\n"+i+": "); mytextarea.append (""+(char)(i)); //'\u05D0'); } mytextarea.append("\n"); JScrollPane myscrollpane = new JScrollPane(mytextarea); JOptionPane.showMessageDialog(null, myscrollpane, "JTextArea in a JScrollPane in a JOptionPane", JOptionPane.PLAIN_MESSAGE); } }