• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Right to left Orientation

 
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 ..
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!