Zolf
asked on
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
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
not sure if swing supports mixed input methods, are you calling selectInputMethod() in your focuslistener?
ASKER
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
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.