Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2006

Tip: Looking for answers? Try searching our database.

default language

Thread view: 
polaris v - 05 Feb 2006 21:14 GMT
I'm developing an application that accepts Arabic string as input in text
field. The Arabic language is written from right to left so Im trying to use
FontRenderContext class to Font.layoutGlyphVector to make the writing
direction from right to left. I have two problems:

First: the compiler Im using which is the latest version jdk1.5.0_06 can't
recognize FontRenderContext calss. It displays cannot find symbol error.

Second: Im not sure how can I make the default text direction is right to
left and the default language is Arabic.
Roedy Green - 06 Feb 2006 00:31 GMT
>I'm developing an application that accepts Arabic string as input in text
>field. The Arabic language is written from right to left so Im trying to use
>FontRenderContext class to Font.layoutGlyphVector to make the writing
>direction from right to left. I have two problems:

I have been experimenting with Hebrew, and discovered to my amazement
you don't have to do anything to make it flow right to left. See
http://mindprod.com/jgloss/hebrew.html

Presumably, Arabic works the same way.  All you need worry about is
alignment.

see http://mindprod.com/jgloss/hebrew.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

polaris v - 06 Feb 2006 14:45 GMT
>>I'm developing an application that accepts Arabic string as input in text
>>field. The Arabic language is written from right to left so Im trying to use
[quoted text clipped - 9 lines]
>
>see http://mindprod.com/jgloss/hebrew.html
Thank you Roedy I got Idea about Locale class from your page
but still I don't understand how to customize the application
to be in arabic as default. Means the default language to input
string is arabic so I don't have to convert the language from the
keyboard. As well as the direction of text is from right to left.
Roedy Green - 07 Feb 2006 04:03 GMT
>Thank you Roedy I got Idea about Locale class from your page
>but still I don't understand how to customize the application
>to be in arabic as default. Means the default language to input
>string is arabic so I don't have to convert the language from the
>keyboard. As well as the direction of text is from right to left.

What happens when you ask Locale for the default?  It is telling you
Arabic?  If it is,then you could start using right alignments.

As for flipping the keyboard, the user can do that with a single
keystoke combination.  It you really need to do that look how you flip
it in C and write a bit of JNI glue.

See http://mindprod.com/jgloss/jni.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.