Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JcomboBox

  Asked By: Rena    Date: Mar 29    Category: Java    Views: 676
  

I'm trying to make a JcomboBox right to left align for persian.
Could you help me with this please ?

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Sumitra 2004     Answered On: Mar 29

use these lines of code:


Locale locale = new Locale( "fa" , "ir" );
Locale.setDefault( locale );
MyComponent.applyComponentOrientation( ComponentOrientation.getOrientation ( Locale.getDefault() ) );

 
Answer #2    Answered By: Betty White     Answered On: Mar 29

simply use the following statement:
----
box.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
---

 
Answer #3    Answered By: Beverly Brooks     Answered On: Mar 29

It was my problem years ago, its fixed in 6th edition. in java 1.4 and above
you can get all components within jcombobox  and change the orientation of them
to RTL one by one.

 
Didn't find what you were looking for? Find more on JcomboBox Or get search suggestion and latest updates.




Tagged: