18 August 2014

Displaying Chinese characters on Swing components like JTextField, JTextArea and etc.

WARNING: this is workaround , not solution for problem!
Solution for Java 6.

Problem:

I decided to write a little utility application to help me manage dictionary file that I use for one of my Android application. I was stuck  with tiny problem that  swing components like JTextField, JTextArea and etc. doesn't display .


Solution:

There are few  fonts that  contains Chinese characters,so they can be used in Swing Components:
  1. Arial Unicode MS
  2. Monospaced
Unfortunately ... Rest of them didn't work for me.

Note:
I may investigate this in future.

No comments:

Post a Comment