GraphicsImporter gi = new GraphicsImporter(StdQTConstants.kQTFileTypePicture);
gi.setDataReference (ref);
GraphicsImporterDrawer gid = new GraphicsImporterDrawer (gi);
// Dimension imageSize = new Dimension (getPictRect().getWidth(), getPictRect().getHeight());
Dimension imageSize = new Dimension (120, 80);
QTImageProducer ip = new QTImageProducer (gid, imageSize);
Image javaImage = Toolkit.getDefaultToolkit().createImage (ip);
//ImagePanel imagePanel = new ImagePanel(javaImage);
//getContentPane().add(imagePanel, BorderLayout.CENTER);
//setSize(imageSize);
// setVisible(true);