java swing, simulate JTable terminateEditOnFocusLost behaviour

Posted by blow on Stack Overflow See other posts from Stack Overflow or by blow
Published on 2011-01-02T20:44:23Z Indexed on 2011/01/02 20:54 UTC
Read the original article Hit count: 138

Filed under:
|

Hi all, i'm using

putClientProperty("terminateEditOnFocusLost", Boolean);

to make jtable end editing and clear current selected rows when it lose focus or when simply click over an other GUI component. This is very useful, but with "terminateEditOnFocusLost" there are some strange behaviours if it is used with editCellAt and changeSelection.

There are also some undesiderable TableModelEvents fired for some fake table updates.

So, im looking for an hack to simulate "terminateEditOnFocusLost without using it, is this possibile?

Thanks all.

© Stack Overflow or respective owner

Related posts about swing

Related posts about jtable