Language Setting in Swing not working now

hello there,

I have a JInternalFrame form which opens in a JDesktopPane.in the form i have JTextField which takes name in english and persian.first is the english name testfield which is straight forward to type in.the second textfield takes the persian name.which when gets the focus i change the Locale to Locale l = new Locale("fa","IR"); using focusListener.it works fine to some extend.i mean i can type from right to left in the second TF,but does not recognize persian fonts,it only recognizes arabic fonts.
in my previous question i asked at EE called Title: Keyboard Language Setting in Swing Applications. i was able to acheive this persian thingy.but now when i have made a little more complex UI.it does not work.please help me to acheive my goals.

cheers
zolf
zolfAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

objectsCommented:
not sure if swing supports mixed input methods, are you calling selectInputMethod() in your focuslistener?
0
zolfAuthor Commented:

the problem was with the font.persian is only supported with some fonts.i changed the font to arial ad it worked.
i have one another question.can you refer me to some good site where i can insert data to a oracle 10g database from java.

cheers
zolf
0
Mayank SAssociate Director - Product EngineeringCommented:
You have plenty of samples here, you can use most of them for Oracle - just make sure you give the correct driver-name:

http://www.javaalmanac.com/egs/java.sql/pkg.html

Download the driver from http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/
0
objectsCommented:
> the problem was with the font.persian is only supported with some fonts.i changed the font to arial ad it worked.

perhaps also change the font in your focus listener
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.