}
public void onClick$BtnSerializeTB(Event event) throws InterruptedException {
Textbox fcOld;
Textbox fcNew;
fcOld = new Textbox("Test Textbox");
// Serialize the original class object
try {
final FileOutputStream fo = new FileOutputStream("cde.tmp");
final ObjectOutputStream so = new ObjectOutputStream(fo);
so.writeObject(fcOld);
so.flush();
so.close();
} catch (final Exception e) {
throw new RuntimeException(e);
}
// Deserialize in to new class object
try {
final FileInputStream fi = new FileInputStream("cde.tmp");
final ObjectInputStream si = new ObjectInputStream(fi);
fcNew = (Textbox) si.readObject();
System.out.println(fcNew.getValue());
si.close();
} catch (final Exception e) {
throw new RuntimeException(e);
}