Article View: borland.public.jbuilder.java.swing
Article #10253Re: Display Chinese Characters in JTextField or JTextArea etc
From: Lois Neo
Date: Wed, 20 Oct 1999 00:00
Date: Wed, 20 Oct 1999 00:00
47 lines
2575 bytes
2575 bytes
Hi, Maybe I didn't explain my situation clearly. Let me try again. Actually I not only want to display chinese characters, I also want to the app to be able to accept chinese characters input. I'm not able to figure out how the Input Method framework works, but currently using the cut-and-paste method. Thus, it would not be possible to keep a resource bundle or properties file for this purpose (as what is done in the IntlDemo). The problem is it is difficult to follow the help file on the Internationalization. It is not very clear as to what should be done for like in my case. The font.properties file is only found under the jre/lib directory, would it be used if we run the app using the java.exe from the $JAVAHOME/bin directory instead of $JAVAHOME/jre/bin? The JTextArea and JTextField in my app would be used to display and accept a mix of english and chinese characters. Would the thing work if the input characters were converted to unicode? and how should it be done? I would appreciate if someone could give a working example to my case. Thanks very much. Lois Wendy Lin <wlin@borland.com> wrote in message news:7uj2bf$s244@forums.borland.com... > 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. > ------------------------------------------------------------------- > > >
Technical Details
Message-ID:
<7uj89q$s229@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7uhr5l$ha99@forums.borland.com> <7uj2bf$s244@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: "Lois Neo" <slneo@cybergal.com> Subject: Re: Display Chinese Characters in JTextField or JTextArea etc Date: 1999/10/20 Message-ID: <7uj89q$s229@forums.borland.com> X-Deja-AN: 538255581 References: <7uhr5l$ha99@forums.borland.com> <7uj2bf$s244@forums.borland.com> 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