dcsimg
How can I make all my text components to write their text from right to left?
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   eitan_worcel
Posted On:   Tuesday, September 17, 2002 05:23 AM

I want JComboBox, JCheckBox, JTextArea ext. to show text from right to left, the text that the user enters and the preentered text. Also how can I define to the frame that components should be from right to left? I mean that when the user press the TAB he will be transfer to the component left from him instead of right.

Re: How can I make all my text components to write their text from right to left?

Posted By:   ramanujam_ragavan  
Posted On:   Tuesday, October 8, 2002 05:02 AM

To right text from left to right, use the following code :



JTextField t = new JTextField();

t.setHorizontalAlignment(JTextField.LEFT);

Re: How can ...

Posted By:   z_chen  
Posted On:   Wednesday, September 18, 2002 01:14 AM

about the TAB ...

component.setNextFocusableComponent(to_component);

Re: How can ...

Posted By:   z_chen  
Posted On:   Wednesday, September 18, 2002 01:08 AM

try this

Locale right_to_left = new Locale("he", "IL");

textComponent.setComponentOrientation(

ComponentOrientation.getOrientation(right_to_left ));
About | Sitemap | Contact