I'm trying to display chess figurines in a Swing JList. I want to use the unicode characters (as described here: http://en.wikipedia.org/wiki/Figurine_notation
) to compose a String. As for now, in my JList I always have a square at the place my chess figurines should be. I know it is normally because the font does not support the caracters, I have tried Tahoma, Lucida Sans Unicode, and so on and still nothing. I've looked into Character Map at the specified location and I can't seem to find them, but they print alright in my browser using HTML entities. I've:
myJList.setFont(new Font('Tahoma', Font.PLAIN, 12))
with all the fonts I could think of and still nothing. I'm missing something here. I create the string as follow:
String s = "\u265F" + "f2-f3";
I'd like to be able to use a string to represent the movements and I'd like to be able to distribute easily my program to Windows, Mac or Linux so I'd need a font that can be use everywhere (TTF for example) without installation in the OS if possible.
> I know I could also use icons of the figurines but that's not what I'm trying to do here.
So, where am I missing something? As someone ever printed those unicode chars in their Java program somewhere?
Thanks for your help!