GeeCON Prague 2014*
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


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable cell focus" Watch "JTable cell focus" New topic
Author

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:
 
GeeCON Prague 2014
 
subject: JTable cell focus