🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10332

Display Chinese Characters in JTextField or JTextArea etc

#10332
From: Lois Neo
Date: Tue, 19 Oct 1999 00:00
30 lines
1628 bytes
Hi,

Does anyone knows whether the swing components are capable of display
chinese characters without changing the default font of the components to a
Chinese font?

I've tried the following which works only for some machines:
  1. Run a chinese input software - Chinese star
  2. Run my application which reads and display a text file containing
chinese characters (GB2312).
  3. The JTextArea and JTextField are able to display the chinese
characters.

The machines have Win98 platform 2nd edition.

I've tried on other machines with Win NT 4.0, and Win98 1st edition, all
can't display correctly. They display square boxes instead of the chinese
characters.

If I change the font of the JTextArea and JTextField to a Chinese font
installed on the system, then display is no problem.

Can anyone tell what's the cause for this? Does it have to do with the
font.properties file?

Also, must a Chinese Input software be run together with the java
application in order to display chinese characters?

Thanks for any help given.
Lois
Technical Details
Message-ID: <7uhr5l$ha99@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,68e7b9b264b14ab6,start
X-Google-Attributes: gid111d45,public
From: "Lois Neo" <slneo@cybergal.com>
Subject: Display Chinese Characters in JTextField or JTextArea etc
Date: 1999/10/19
Message-ID: <7uhr5l$ha99@forums.borland.com>
X-Deja-AN: 537926009
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Reply-To: "Lois Neo" <slneo@cybergal.com>
Newsgroups: borland.public.jbuilder.java.swing