Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextField and Focus

 
Sri Rangan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Form which consists of JPanels(I call it Formlet). Each Formlet has a TextArea (Non-editable) and a JTextField/JFormattedTextField.
I would like to have the ability to tab off from one formlet text field to another using the tab key.
How to achieve this?
Thanks in advance
Sri
 
Sri Rangan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact I place the JTextArea in JScrollPane
 
Sri Rangan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out. I am setting setFocusable(false) for JTextArea and JScrollPane
Sri
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic