serialized table and putClientProperty("terminateEditOnFocusLost")

Hello,

I have a serialized class that contains a (custom) JTable as a class variable. I enabled the property "terminateEditOnFocusLost". When I deserialize the table the property seems to have been reset to false, because I get errors on the next save process.

I don't know enough about Serialization, is this normal? And is it enough and secure to enable the property always anew after loading? At the moment it seems to work at least.

Regards Tom

[474 byte] By [tango1383a] at [2007-11-27 10:50:07]
# 1

Looking at the 1.4 API docs and source for JComponent, I don't see anything that would suggest that properties, as a whole, are not serialized. However, if the key or value of the property isn't itself serializeable, then it can't write that stuff. But Strings are, and Booleans are... so not sure.

Resetting it can't hurt if you know you always need it.

bsampieria at 2007-7-29 11:23:23 > top of Java-index,Desktop,Core GUI APIs...