File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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);
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JTable Cell is in editing mode when pressing key with contorl buttons . . .
 
Similar Threads
Making a cell in JTable in Editing Mode by default
JTable focus issue
jtable set value problem
Disable Enter key in JTable
JTable customization