This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTable cell focus Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable cell focus" Watch "JTable cell focus" New topic

JTable cell focus

G Estes
Ranch Hand

Joined: Oct 22, 2002
Posts: 62
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

Joined: Oct 22, 2002
Posts: 62
This may help...
Here are two methods where I believe the problem lies. The cell editor:

and the keyReleased() method:
wood burning stoves
subject: JTable cell focus
Similar Threads
Tabbing out of a JTable
Disabling JTable Cell selections
Disable Enter key in JTable
help needed in rectifying JTable problem