Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Right to left Orientation

 
Arad Chear
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have created JFrame by GUI builder

and there is a lot of JTextFields there
when run the JFrame the focus firstly on the first left jtextfield
but I want it: first right field also when I press Tab i want it to go right to left
and i want the cursor to be from right to left in the writing

can i do this (programmatically or by builder) ? how ?

Thanks ..
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the API for

JComponent#setNextFocusableComponent()
Component#requestFocusInWindow

Also check out these links

http://java.sun.com/docs/books/tutorial/uiswing/misc/focus.html
file:///D:/jdkDocs/api/java/awt/doc-files/FocusSpec.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!