Help with custom TableCellEditor

I have created a custom component that extends Container and contains a JComboBox and JButton. I've also created a custom TableCellEditor that returns the custom component and for the most part it works fine except for a few thing that I am hoping someone can help with.

The custom component (Container) installs a focusGained method to ensure that the combobox, which is editable, always gets the focus so that traversing the table using the keyboard always puts the cell into edit mode but I would like to stop cell editing and move to the cell directly below when the enter key is pressed or a combobox selection is made. Any suggestions?

Cheers,

Matt

[680 byte] By [m-j-ba] at [2007-10-2 23:56:51]
# 1
For comboboxentry, you could add a static list of listeners to the editor class. The table would register as a listener. Then in the editor class, when the selected value of the combobox changes, notify the listeners.
BaltimoreJohna at 2007-7-14 16:43:34 > top of Java-index,Desktop,Core GUI APIs...