input text that goes right to left

R

ROBT NISHIDA

Hi,

I am new to java. Am creating a math page for teachers. I have math
problems where the input needs to be right to left (e.g. adding two several
digit numbers in a column). Is there an easy way to specify that the text
insertion point needs to move from right to left instead on the standard
left to right? I tried the direction property, but that doesn't seem to
work.

kd
 
V

VisionSet

ROBT NISHIDA said:
Hi,

I am new to java. Am creating a math page for teachers. I have math
problems where the input needs to be right to left (e.g. adding two several
digit numbers in a column). Is there an easy way to specify that the text
insertion point needs to move from right to left instead on the standard
left to right? I tried the direction property, but that doesn't seem to
work.

Throughout the Swing (AWT?) API there is facility for those
languages/cultures that are used to reading top right to bottom left.
I'd bet that this facility carries through to text entry.

Have a look at this:

JTextComponent.setComponentOrientation(ComponentOrientation o)
 

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

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top