• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable Focus/Refresh  RSS feed

 
Andrew Ceronoski
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:

I have a simple JTable, 5 columns, 99 rows. When I type a new value in the cell, the value is actually part of the table until I hit enter.

Is there any way I can get around not having to hit enter? (I have no problem hitting enter, but Im trying to make it more user friendly!)

Thanks for the help!

 
Rob Spoor
Sheriff
Posts: 21048
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE)

Alas one of the badly documented features of Swing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!