Manuel Moons wrote:
Does anyone know how I can stop a tablecelleditor from losing focus when the tab key is pressed? I have an editor which contains 2 combo boxes. I want to switch between those 2 combos when pressing tab. At the moment the focus of the editor is lost. How can I fix this?
By default JTable has an action bound to the tab key. I don't know if this will work, but you can try removing that binding:
Here the
string "do-nothing" can be anything so long as it doesn't match anything in the action map. (So "selectNextColumnCell" would be a poor choice.)