try {
QTSessionCheck.check();
String url =
JOptionPane.showInputDialog (null,
"Enter URL:");
DataRef dr = new DataRef (url);
Movie m = Movie.fromDataRef (dr,
StdQTConstants.newMovieActive);
System.out.println ("got movie");
Frame f = new BasicDataRefQTPlayer (m);
f.pack();
f.setVisible(true);
m.start();
} catch (Exception e) {
e.printStackTrace();
}