This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTable Cell is in editing mode when pressing key with contorl buttons . . . Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable Cell is in editing mode when pressing key with contorl buttons . . ." Watch "JTable Cell is in editing mode when pressing key with contorl buttons . . ." New topic
Author

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

sriram krishna
Greenhorn

Joined: Nov 21, 2011
Posts: 6
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

Joined: Jun 09, 2003
Posts: 4632
table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable Cell is in editing mode when pressing key with contorl buttons . . .