🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Display Chinese Characters in JTextField or JTextArea etc

#10252
From: Wendy Lin
Date: Tue, 19 Oct 1999 00:00
55 lines
2449 bytes
Lois:

Swing should be able to display Chinese character provided that you have
the correct fonts and modify your font.properties file so the "fonts" are
installed.   It's pretty neat because if you do it properly, you won't have
to run Chinese star. It'll just display.

For more information, check out intlDemo in your JBuilder's sample
directory. Also read up in the help file (international section.)

--Wendy
JBuilder QA

--------------------------------------------------------------------
I believe we should share the knowledge. So, private e-mail sent
to me won't bounce but it will als not be answered.
-------------------------------------------------------------------



Lois Neo <slneo@cybergal.com> wrote in message
news:7uhr5l$ha99@forums.borland.com...
> 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: <7uj2bf$s244@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7uhr5l$ha99@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,68e7b9b264b14ab6
X-Google-Attributes: gid111d45,public
From: " Wendy Lin" <wlin@borland.com>
Subject: Re: Display Chinese Characters in JTextField or JTextArea etc
Date: 1999/10/19
Message-ID: <7uj2bf$s244@forums.borland.com>
X-Deja-AN: 538229010
References: <7uhr5l$ha99@forums.borland.com>
X-Priority: 3
X-Mimeole: Produced By Microsoft MimeOLE V5.00.2014.211
Organization: Borland
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing