aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JFrame and Right to left Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFrame and Right to left" Watch "JFrame and Right to left" New topic
Author

JFrame and Right to left

Mazen Mahmoud
Greenhorn

Joined: Oct 25, 2007
Posts: 20
Hi,

Is it possible to make a JFrame (and all its components) appears from right to left??? check the arabic screen at http://java.sun.com/docs/books/tutorial/ui/features/i18n.html


It's urgent.
Thanks
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

Well since you have posted the link yourself, the obvious answer is yes.
Where are you stuck at?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Mazen Mahmoud
Greenhorn

Joined: Oct 25, 2007
Posts: 20
Hi,
i have designed a full english application. what i need now is to make it in arabic. sure i don't want to create new screens for arabic. I'm using netbeans. I've created all resource bundles. The problem is that i'm unable to let the screen (frames, labels, panels etc) switch to RTL. In fact i used component orientation, but what i need is if for example on the english screen i have label1 textbox1 label2 textbox2 => on the arabic one i want it to appear as textbox2 label2 textbox1 label1.

Is it possible??
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10535
    
    9

Originally posted by Mazen Mahmoud:
.. The problem is that i'm unable to let the screen (frames, labels, panels etc) switch to RTL. In fact i used component orientation, but what i need is if for example on the english screen i have label1 textbox1 label2 textbox2 => on the arabic one i want it to appear as textbox2 label2 textbox1 label1.


You are confusing the component orientation and the layout.
The layout will define the sequence of the children in the parent container whereas the orientation will define the well orientation.

Check out this thread where the OP was trying to do something similar to your requirement.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFrame and Right to left