Monday's Programming Question
This week is a continuation of the code point program created from last Monday's question. As I mentioned in the answer, the System.out.print method uses the default character encoding of the operating system. For instance, on the MacBook I'm using, the default character encoding for Java is MacRoman. This means that the System.out.print method will struggle to print the characters for most of the Unicode code point values.
For today's question I want to show that using Swing doesn't have that limitation. Take the Java program you created last week or the one posted in the answer on Sunday and modify it so that it now displays the characters using a JOptionPane. The question is what characters are displayed in the dialog for the range U+3041 to U+309F?
Note: your operating system might not have a font that's capable of displaying the characters. In windows XP/2000 you can add additional fonts through Region Options in the Control Panel. Under the Language Tab there are options for installing supplemental language support.


Comments
No comments yet. Leave a Comment