posted 14 years ago
Huh? I don't want to get an individual char from a string.
For example, if I have a JTextField and a JLabel. The user literally types in the JTextField "\u004D", the JLabel should display an 'M'.
However, I figured it out. Just take the last four characters of the string (running under the assumption that it is a valid Unicode number), and put it through Integer.parseInt(string, 16); Cast that result to a char, and done.