1

I am working with virtual keyboard in my application. I tried to display the arrow keys in the keyboard by unicodes, Some unicodes are displaying correctly others displaying as junk.

Ex:

\u2191 - Displaying
\u21B5 - Not displaying
geisterfurz007
  • 5,292
  • 5
  • 33
  • 54
Sharan De Silva
  • 598
  • 1
  • 8
  • 27

1 Answers1

2

Make sure your OS includes a font that supports unicode.

Try one of the fonts from this list: http://unicode.org/resources/fonts.html

Mottie
  • 84,355
  • 30
  • 126
  • 241
  • I can able to display the unicode by html. **JButton label = new JButton("\u21B5");** But it causes performance issue since I am having many buttons in keyboard. Will HTML rendering takes time!! – Sharan De Silva Oct 13 '17 at 06:03