This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

making ENTER act as TAB in JTable

 
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