JTable / JComboBox edit mode, and fake edit mode
I have a JTable that uses JComboBox as an editor in a fairly standard way.In fact, standard enough that you will be able to see my problem in a standard java table example:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#combobox
When you run this code, if I click on the combobox field, the combobox is fully editable:
* Up/Down arrow keys change the combobox selection
* Typing selects the combobox selection based on 1st character
* Enter/Tab are captured by the table to move to another field.
But if I move the table selection around with the arrow keys to the combobox and then type an alphanumeric key (e.g. "a"), the following behavior happens:
* The combobox is displayed with it's value and it's pulldown arrow graphic as if the table cell editor was in edit mode.
* Up/Down arrow keys change the table selection NOT the combobox selection
* Typing does NOT change the combobox selection based on 1st characters.
It's as if the cell is not in edit mode at all.... but only appears that way.
What I am trying to do is, whenver a user types a key that the table doesn't already respond do (e.g. arrows, enter, tab, etc), then I want the cell to go completely into edit mode:to respond to up and down arrows in the combobox and to have letters autoselect items in the combobox.
Anyone?

