• Post Reply Bookmark Topic Watch Topic
  • New Topic

jtable enter key

 
Robert Stone
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a jtable to display data in columns like a spreadsheet, but when the user is typing text in a table cell I want the enter key to create a carriage return. Does anyone know how to do this? I have tried creating my own custom TableCellRenderer but that didn't work. The enter key still just moves to the next row in the table. I would love to know who thought this would be a desired functionality.

Thanks in advance,

Robert
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!