Index: buix/src/java/org/codelutin/buix/Buix.java diff -u buix/src/java/org/codelutin/buix/Buix.java:1.43 buix/src/java/org/codelutin/buix/Buix.java:1.44 --- buix/src/java/org/codelutin/buix/Buix.java:1.43 Thu Aug 5 16:04:48 2004 +++ buix/src/java/org/codelutin/buix/Buix.java Tue Aug 10 17:08:59 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin -* @version $Revision: 1.43 $ +* @version $Revision: 1.44 $ * -* Mise a jour: $Date: 2004/08/05 16:04:48 $ +* Mise a jour: $Date: 2004/08/10 17:08:59 $ * par : $Author: mazelier $ */ @@ -938,9 +938,9 @@ try{ XMLEncoder e = new XMLEncoder(new BufferedOutputStream( new FileOutputStream(file))); + e.setPersistenceDelegate(org.codelutin.topia.ui.swing.TopiaPanel.class, new org.codelutin.buix.BuixXMLEncoder.TopiaPanel_PersistenceDelegate()); e.writeObject(getRootComponent()); e.close(); - e.setPersistenceDelegate(org.codelutin.topia.ui.swing.TopiaPanel.class, new org.codelutin.buix.BuixXMLEncoder.TopiaPanel_PersistenceDelegate()); }catch(Exception eee){ System.out.println(eee); } Index: buix/src/java/org/codelutin/buix/BuixXMLEncoder.java diff -u buix/src/java/org/codelutin/buix/BuixXMLEncoder.java:1.22 buix/src/java/org/codelutin/buix/BuixXMLEncoder.java:1.23 --- buix/src/java/org/codelutin/buix/BuixXMLEncoder.java:1.22 Thu Aug 5 16:04:48 2004 +++ buix/src/java/org/codelutin/buix/BuixXMLEncoder.java Tue Aug 10 17:08:59 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin -* @version $Revision: 1.22 $ +* @version $Revision: 1.23 $ * -* Mise a jour: $Date: 2004/08/05 16:04:48 $ +* Mise a jour: $Date: 2004/08/10 17:08:59 $ * par : $Author: mazelier $ */ @@ -405,6 +405,9 @@ java.awt.Component[] oldChildren = oldC.getComponents(); java.awt.Container newC = (java.awt.Container)newInstance; //java.awt.Component[] newChildren = (newC == null) ? new java.awt.Component[0] : newC.getComponents(); + + System.out.println("********** old.size: "+ oldC.getComponents().length); + System.out.println("********** new.size: "+ newC.getComponents().length); for(int i = 0; i < oldChildren.length; i++) { out.writeStatement(new Statement(oldInstance, "add",