Bonjour,
Je tente de sérialiser un objet SWT, en l'occurence Tree
Code :
- public class MyTree implements Serializable {
- private Tree tree;
- }
|
donc, je lui ajoute implements serializable
..ensuite, j'essaie de sérialiser ca:
Code :
- FileOutputStream fos = new FileOutputStream("test.txt" );
- ObjectOutputStream oos = new ObjectOutputStream(fos);
- myTree = new MyTree (shell);
- oos.writeObject(myTree );
- oos.flush();
- oos.close();
|
..mais j'ai une exception du type NotSerializableException...
Quelqu'un a t-il déjà sérialisé des objets SWT ?
cdt 
Message édité par paowz le 09-12-2006 à 11:11:17