if (getSelectedColumn() == (getColumnCount() - 1)) {//last column ?
if (ke.getID() == KeyEvent.KEY_TYPED) {//shift-TAB ?
KeyboardFocusManager focusManager = KeyboardFocusManager
.getCurrentKeyboardFocusManager();
if (ke.isShiftDown()) {
focusManager.focusPreviousComponent();
} else {
//int selRow = getSelectedRow();
clearSelection();
focusManager.focusNextComponent();
}