try {
QTSessionCheck.check();
QTFile file =
QTFile.standardGetFilePreview (QTFile.kStandardQTFileTypes);
OpenMovieFile omFile = OpenMovieFile.asRead (file);
movie = Movie.fromFile (omFile);
MovieController controller = new MovieController (movie);
QTComponent qtc = QTFactory.makeQTComponent (controller);
Component c = qtc.asComponent();
Frame frame = new Frame ("Pict From Movie");
frame.setLayout (new BorderLayout());
frame.add (c, BorderLayout.CENTER);
Button pictButton = new Button ("Make movie.pict");
pictButton.addActionListener (new ActionListener() {
public void actionPerformed (ActionEvent e) {
dumpToPict();
}
});
frame.add (pictButton, BorderLayout.SOUTH);
frame.pack();
frame.setVisible(true);
} catch (QTException qte) {
qte.printStackTrace();
}