Change the caret of language

M

Mr. x

Hello,

I am using both Hebrew and English.

I want programmatically to change the caret flag (the blinking cursor when
typing some characters on edit fields)
from right to left and from left to right.

What I am doing is calling Windows API (by JNI protocol) :
LoadKeyboardLayoutA - but this runs only on Windows platform.

Isn't there any other solution, but something that is simple or built in
java, to change the keyboard layout to Hebrew or English, or any other
language ?

Thanks :)
 
B

Bent C Dalager

Hello,

I am using both Hebrew and English.

I want programmatically to change the caret flag (the blinking cursor when
typing some characters on edit fields)
from right to left and from left to right.

What I am doing is calling Windows API (by JNI protocol) :
LoadKeyboardLayoutA - but this runs only on Windows platform.

Isn't there any other solution, but something that is simple or built in
java, to change the keyboard layout to Hebrew or English, or any other
language ?

There is some treatment of Java2D's and Swing's support for
bidirectional text at
http://java.sun.com/j2se/1.4.2/docs/guide/2d/spec/j2d-fonts.html

I'm not sure how this relates to keyboard layouts though.

Cheers
Bent D
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top