public static void main(String args[]) {
    try {
      QTSession.open();
      GroupDrawing frame = new GroupDrawing("QT in Java");

      frame.pack();
      frame.show();
      frame.toFront();
    } catch (Exception e) {
      e.printStackTrace();
      QTSession.close();
    }
  }
  public void init() {
    try {
      if (QTSession.isInitialized() == false) QTSession.open();
      // set up a QTComponent which will disply its content
      // at its original size of smaller and centered in the space given
      // to the QTComponent when the applet is layed out
      setLayout(new BorderLayout());
      QTFile qtf = new QTFile(getCodeBase().getFile() + getParameter("file"));
      OpenMovieFile fis = OpenMovieFile.asRead(qtf);
      mov = Movie.fromFile(fis);
      qtc = QTFactory.makeQTComponent(mov);

    } catch (QTException qtE) {
      throw new RuntimeException(qtE.getMessage());
    }
  }