I have been using this class and it works great but it's limited to only playing mpg and audio files. Is there a way I can modify this class to play AVIs, WMVs and quicktime?

thanks!

public class MediaPlayer extends JFrame {
private Player player;
private File file;

public MediaPlayer()
{
super("AMOR Media Player");

openFile(); // file = filePath()
createPlayer(); // Generate Media Player

setSize( 500, 500 );
this.setVisible(true);
}

private File filePath()
{
File file= new File("C:\\Documents and Settings\\swankee\\My Documents\\My Videos\\WSS.mpg");
return file;
}

private void openFile()
{
file = filePath();
System.out.println(file);
}

private void createPlayer()
{
if (file == null)
return;

removePreviousPlayer();

try {
// create a new player and add listener
player = Manager.createPlayer(file.toURL());
player.addControllerListener( new EventHandler() );
player.start(); // start player
}
catch (Exception e){
JOptionPane.showMessageDialog(this, "Invalid file type or file not found", "Error loading file", JOptionPane.ERROR_MESSAGE );
}
}

private void removePreviousPlayer()
{
if (player == null)
return;

player.close();

Component visual = player.getVisualComponent();
Component control = player.getControlPanelComponent();

Container c = getContentPane();

if (visual != null)
c.remove(visual);

if (control != null)
c.remove(control);
}

// inner class to handle events from media player
private class EventHandler implements ControllerListener {
public void controllerUpdate(ControllerEvent e) {
if (e instanceof RealizeCompleteEvent) {
Container c = getContentPane();

// load Visual and Control components if they exist
Component visualComponent =
player.getVisualComponent();

if (visualComponent != null)
c.add(visualComponent, BorderLayout.CENTER);

Component controlsComponent =
player.getControlPanelComponent();

if (controlsComponent != null)
c.add(controlsComponent, BorderLayout.SOUTH);

c.doLayout();
}
}
}
}