Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable cell focus

 
G Estes
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am tabbing through the editable cells in a customized JTable. I am using a custom editor and renderer as well. The tabbing part is fine. When the tab gives the cell focus, the editor comes up, but the cell doesn't "look" selected. Likewise, when the tab takes focus to the next editable cell, the previous editor remains, as opposed to the renderer. Should I be firing an event when the cell gains and looses focus? Any other suggestions on what might be happening?
 
G Estes
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may help...
Here are two methods where I believe the problem lies. The cell editor:

and the keyReleased() method:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic