Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable Cell is in editing mode when pressing key with contorl buttons . . .

 
sriram krishna
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

After completing typing in to the table cell, when i press the some key ( i.e s letter) with modifier buttons ( Ctrl, Alt) it is going into editing mode. Of course, the action associated with this key stroke is performed. After completing the save action the cell is going into edting mode automatically. Even though i programatically transfer focus to some other component the cell is stll in editing mode. how to prevent this one. ??

Thank you.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic