import java.awt.*;
import java.io.*;

public class WindowSerializeIn {

 public static void main (String args[]) throws IOException, ClassNotFoundException{
     ObjectInputStream in = 
        new ObjectInputStream (
          new FileInputStream ("status.dat"));
     Frame f = (Frame)in.readObject();
     in.close();
     System.out.println("Window retrieved");
     f.show();

 }
}

