FileDocCategorySizeDatePackage
BasicQTController.javaAPI DocExample2117Wed Nov 10 12:37:26 GMT 2004com.oreilly.qtjnotebook.ch02

BasicQTController

public class BasicQTController extends Frame

Fields Summary
Constructors Summary
public BasicQTController(Movie m)

        super ("Basic QT Controller");
        MovieController mc = new MovieController(m);
        QTComponent qc = QTFactory.makeQTComponent (mc);
        Component c = qc.asComponent();
        add (c);
        pack();
    
Methods Summary
public static voidmain(java.lang.String[] args)

        try {
            QTSessionCheck.check();
            QTFile file =
                QTFile.standardGetFilePreview (QTFile.kStandardQTFileTypes);
            OpenMovieFile omFile = OpenMovieFile.asRead (file);
            Movie m = Movie.fromFile (omFile);
            Frame f = new BasicQTController (m);
            f.pack();
            f.setVisible(true);
        } catch (Exception e) {
            e.printStackTrace();
        }