5

Java Swing Font Display Problem

view full story
linux-howto

http://forums.fedoraforum.org – Hello, I have a java application that originally runs in Windows, and the UI doesn't have any problem in displaying Chinese and Japanese. But now on Fedora, in a JPanel, I can't type Chinese or Japanese (broken characters). Then, I tried JTextPane.setFont(...) for a Chinese font, it displays correctly. My question is, why don't I have to set font explicitly for Chinese and Japanese on Windows, but have to do that on Linux? (HowTos)