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
  • 4,398
  • 5
  • 34
  • 51
Sharan De Silva
  • 588
  • 1
  • 8
  • 25

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
  • 79,894
  • 29
  • 121
  • 237
  • 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