listproperty

NotSerializableException on SimpleListProperty

眉间皱痕 提交于 2019-11-27 03:35:46
问题 I'm using Javafx, and I wrap my objects into ListProperty to let the tableview updates for any changes on the objects of the list. Now I'm trying to serialize my project and the ListProperty of objects and it throw me this exception. java.io.NotSerializableException: javafx.beans.property.SimpleListProperty at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1181) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1541) at java.io.ObjectOutputStream