Serializing a JButton

i tried serializing JButton and restoring it during the next run, but it doesn't seem to work. are there issues with deserializing a JBUtton?
[156 byte] By [Airwolfa] at [2007-11-27 1:32:11]
# 1

Just a warning: serialization of GUI components like JButton is not meant

for long term storage, nor for exchange between systems that may have

different versions of the JVM (since the serialization format is not guaranteed

to be stable between versions).

See http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JButton.html

KathyMcDonnella at 2007-7-12 0:36:09 > top of Java-index,Core,Core APIs...
# 2

> Just a warning: serialization of GUI components like

> JButton is not meant

> for long term storage, nor for exchange between

> systems that may have

> different versions of the JVM (since the

> serialization format is not guaranteed

> to be stable between versions).

Use XMLEncoder and XMLDecoder to serialize and store it if you're worried about different formats between JVMs.

kmangolda at 2007-7-12 0:36:09 > top of Java-index,Core,Core APIs...
# 3
what were you hoping to achieve by serializing a JButton, anyway?
georgemca at 2007-7-12 0:36:09 > top of Java-index,Core,Core APIs...