private void openFilePane()
    {
	JFileChooser fileChooser = new JFileChooser();

	fileChooser.addChoosableFileFilter( new javax.swing.filechooser.FileFilter() {
		public boolean accept(File f)
		{
		    if( f.isDirectory() )
			return true;

		    String ext = getExtension(f );

		    if( ext != null )
		    {
			if( ext.equals("mpg" ) ||
			    ext.equals("mpeg") ||
			    ext.equals("m1v" ))
			    return true;
			else
			    return false;
		    }
		    else
			return false;
		}

		public String getDescription()
		{
		    return "*.mpg, *.mpeg";
		}
		
		private String getExtension(File f )
		{
		    String ext = null;
		    String s = f.getName();
		    int i = s.lastIndexOf('.' );

		    if( i > 0 && i < s.length() -1 )
		    {
			ext = s.substring(i+1).toLowerCase();
		    }

		    return ext;
		}
	    } );

	int returnVal = fileChooser.showOpenDialog(this);

	if( returnVal == JFileChooser.APPROVE_OPTION )
	{
	    try
	    {
		openFile( fileChooser.getSelectedFile().getCanonicalPath() );
		startPlaying();
	    }
	    catch(IOException e)
	    {
		showDialog( ERROR, e.getMessage() );
	    }
	}
    }