• Post Reply Bookmark Topic Watch Topic
  • New Topic

making ENTER act as TAB in JTable  RSS feed

 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
does anybody know a code to make "ENTER" act as a "TAB" in JTable?
thanks,
Alex
 
Vinod Venugopal
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When u say "tab" du mean u want to shift from the table or ?...
you can trap the kep pressed using mouselisteners & check
if( e.getKeyCode()==KeyEvent.VK_ENTER)
then do something.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!