I'd like to be able to tab between cells and the cell to immediately go into edit mode Additionally I'd like it to skip uneditable cells, so tabbing on a far right cell doesn't move to the label on the next row, but to the next editable cell in the next row.
The solution works well, except it does not tab to the next editable column in the next row. It keeps going back to the first editable column in the same row.
I beleive the best way to handle this problem is define two addKeyListener. One for click and another for tab.
Catch the tab event as "addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent e) { if(e.getKeyCode() == KeyEvent.VK_TAB) {//add bussiness logic }}} Because for your problem the logic for tab event and lick event must be differnt.
And your bussinees logic for tab event may be like
The solution works well, except it does not tab to the next editable column in the next row. It keeps going back to the first editable column in the same row. Try running this as–is: