Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using tab key in jtable,my table consists panels ad cells

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my table has cell as jpanels,panels contains text fields.what i want is on pressing tab key next cell should focused.
how can i do that.
here is code
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The next cell is already focused with that code. You may not see it because all cells in the current row are marked as selected. Call table.setColumnSelectionAllowed(true) to select each cell separately instead of the entire row. You'll now see that tab highlights only the next cell.
 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my problem is that i have to get focus in the text field of the next cell.
thanks for the reply
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't say that initially, didn't you? Do you want me to use my crystal ball to guess what you want?
 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes yes thats my mistake ,i didnt ask my question properly.sorry prime.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic