import java.awt.*;
import javax.swing.*;

/**
 * An example that uses a media processor
 * to play content
 *
 * @version 1.0
 * @author  Prof. David Bernstein, James Madison University
 *
 */
public class ProcessorPanelDriver
{
    /**
     * The entry point of the example
     *
     * @param args  The command line arguments
     */
    public static void main(String[] args)
    {
	JFrame           f;
	Container        contentPane;
	ProcessorPanel   p;


	f = new JFrame();

	contentPane = f.getContentPane();
	contentPane.setLayout(new BorderLayout());

	p = new ProcessorPanel();

	contentPane.add(p, BorderLayout.CENTER);

	f.setSize(320,300);
	f.setVisible(true);


	p.loadAndStart(args[0]);
    }
}
