> I have created an EditorBean and an Applet with some button, but when i
> try to Serial it.
[quoted text clipped - 3 lines]
> java.io.WriteAbortedException: writing aborted;
> java.io.NotSerializableException: sun.awt.windows.WToolkit
This NotSerializableException is thrown because you tried to serialize an
object of type WToolkit. By default serialization writes out all non-static
and non-transient member variables. Therefore I would guess that you have a
member variable of type Toolkit declared somewhere in your class. The
solution would be to change your declaration from for example
private Toolkit toolkit;
to
private transient Toolkit toolkit;
Of course then you would have to set your toolkit variable during
deserialization in another way, probably in a readObject() method. For how
to declare and implement this method, see
<http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html> and
<http://java.sun.com/developer/technicalArticles/Programming/serialization/index.html>.

Signature
"TFritsch$t-online:de".replace(':','.').replace('$','@')
pcouas - 13 Dec 2005 07:31 GMT
Hi,
I use Dimension perhaps
pcouas - 13 Dec 2005 10:00 GMT
Yes i have an Toolkit, i see it in Serializable output file.
But it come in my Serializable output file only when i press a
specific button for Viewing my own property Editor
I have declared my PropertyEditor like transient, but writeObject try
to serializable it ?
Regards
Philippe