java - Listening for KeyEvent in a JTable - how to do it while cell is being edited? -
i'm working on jframe has jtable , few other elements within it. want user able tab through table (with set number of rows) , when focus @ lower right hand side of table, hitting tab again jump component, in case jtextfield.
i used keylistener accomplish case user tabs through table. problem i'm having if user editing cell , presses tab, tablecelleditor seems have focus , keylistener added table doesn't called. can tell in docs, celleditor can have celleditorlistener can have changeevent, not going work i'm trying here.
anybody know of workaround this, or trick haven't thought of?
i used keylistener accomplish case user tabs through table.
don't use keylistener. swing designed used key bindings.
see table tabbing approach shows how reuse existing tab action while providing customization. since approach uses default tab action fix problem well.
Comments
Post a Comment