🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Arabic text in Swing component under NT 2000

#9200
From: Thorsten Mauch
Date: Thu, 11 May 2000 00:00
27 lines
1496 bytes
Hallo
I like to Input arabic under windows 2000 text in swing components. But it
if I change to arabic Input my component shows only trash.
I tried to set the Locale of the frame and JtextBox.
For example:

    Locale l = new Locale("ar","EG");
     jTextField1.setLocale(l);

I checked if this locale is supportet on my system with:

    Locale.getAvailableLocales(ls)

Next I tried to set the Inputcontext, but without any success.

Locale l = new Locale("ar","EG");
 UnicodeBlock [] uniblocks;
 uniblocks = new UnicodeBlock[1];
 uniblocks[0]=UnicodeBlock.ARABIC;
.
jTextField1.getInputContext().setCharacterSubsets(uniblocks);
jTextField1.getInputContext().selectInputMethod(l);

Maby I have totally wrong ideas, about this problem. Maby somebody knows the
right way

Thanks
Technical Details
Message-ID: <391b0b54$0$7050@personalnews.de.uu.net>
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,2a710c18bee8b30b,start
X-Google-Attributes: gid111d45,public
X-Google-Thread: 10fd6d,2a710c18bee8b30b,start
X-Google-Attributes: gid10fd6d,public
From: "Thorsten Mauch" <mauch@imkenberg.de>
Subject: Arabic text in Swing component under NT 2000
Date: 2000/05/11
Message-ID: <391b0b54$0$7050@personalnews.de.uu.net>
X-Deja-AN: 622241549
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Trace: personalnews.de.uu.net 958073684 7050 149.228.239.167
Organization: Customer of UUNET Deutschland GmbH
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.gui