In a JTable, how can I use the TAB key on the last column to create a new row and transfer focus to the first column of that new row?

Sandip Chitale

If you override the javax.swing.JComponent.isManagingFocus() and return true, you should be able to intercept the TAB and Shift TAB keys and manage the focus yourselves (using the registerKeyboardAction(...) API or addKeyListener()).

You may also have to override javax.swing.JComponent.isFocusRoot() and return true.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact