Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pressing Enter on JTable, Not jumping to Next Row

 
Jeff Holmes
Ranch Hand
Posts: 44
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTable that a user can select only one row and non of the fields are editbale, it is to display data only. I have the enter key captured when user presses a key, and I display a dialog when enter is pressed. Everything works great, but how do I stop the default behavior of the return key not causing the jTable to go to the next line? Any ideas? Thanks, Jeff
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic