• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Right to left Orientation

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic