diff options
| author | Paul Buetow <paul@buetow.org> | 2008-06-01 22:45:59 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-06-01 22:45:59 +0000 |
| commit | 293c73f50f87b3d73d3947a9f79430b23ec4ddba (patch) | |
| tree | 129ece28dcda9d17bb6e0fc417d8b25bb82dac4c /sources/prefs/editors | |
| parent | 8086082daaed71ee9105c156e3a1e8e63caf1990 (diff) | |
better serialization
Diffstat (limited to 'sources/prefs/editors')
| -rw-r--r-- | sources/prefs/editors/VSEditorTable.java | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/sources/prefs/editors/VSEditorTable.java b/sources/prefs/editors/VSEditorTable.java index ba5727c..770ebdd 100644 --- a/sources/prefs/editors/VSEditorTable.java +++ b/sources/prefs/editors/VSEditorTable.java @@ -26,6 +26,7 @@ package prefs.editors; import java.util.*; import java.awt.*; +import java.io.*; import javax.swing.*; import javax.swing.table.*; import javax.swing.text.*; @@ -36,7 +37,7 @@ import prefs.*; /** * The class VSEditorTable. */ -public class VSEditorTable extends JTable { +public class VSEditorTable extends JTable { /* implements Serializable */ private static final long serialVersionUID = 1L; /** The Constant MIN_ROWS. */ @@ -54,7 +55,7 @@ public class VSEditorTable extends JTable { /** * The class VSNode. */ - private class VSNode { + private class VSNode implements Serializable { /** The key. */ private String key; @@ -117,6 +118,30 @@ public class VSEditorTable extends JTable { public boolean isSeparator() { return comp == null; } + + /** + * Write object. + * + * @param objectOutputStream the object output stream + * + * @throws IOException Signals that an I/O exception has occurred. + */ + public synchronized void writeObject(ObjectOutputStream objectOutputStream) + throws IOException { + } + + /** + * Read object. + * + * @param objectInputStream the object input stream + * + * @throws IOException Signals that an I/O exception has occurred. + * @throws ClassNotFoundException the class not found exception + */ + @SuppressWarnings("unchecked") + public synchronized void readObject(ObjectInputStream objectInputStream) + throws IOException, ClassNotFoundException { + } } /** |
