JTable focus problem

In JTable i had inserted two textfields,one combobox(editable) and again two textfields.By using the key(tab) i can edit all textfields but the editable combobox is not editable.It acts as editable combobox only when i click with the mouse over it.I need a program to make editable only through keyboard.I had used FocusListeners which is not working inside the JTable(ie.,it is not firing the event when the focus is on the combobox ,it fires the event when the focus is on the complete table but not for every element in it).please help me

[548 byte] By [Challenge_in_javaa] at [2007-11-27 8:37:12]
# 1

You can try placing the cell in edit mode whenever it gains focus by overriding the changeSelection(...) method of JTable. Something like:

public void changeSelection(

int row, int column, boolean toggle, boolean extend)

{

super.changeSelection(row, column, toggle, extend);

if (column == yourComboBoxColumn)

editCellAt(row, column);

}

camickra at 2007-7-12 20:34:26 > top of Java-index,Desktop,Core GUI APIs...