how to set fullsceen mode?

how to set fullsceen mode for this player?

import java.awt.*;

import java.io.File;

import javax.media.*;

import javax.media.protocol.DataSource;

import javax.swing.*;

publicclass PlayFilesextends JFrameimplements ControllerListener{

private Container cont;

private JPanel jPPlayer =new JPanel();

publicstaticvoid main(String[] args)throws Exception

{

new PlayFiles("H:/video/Chemical Brothers/Chemical Brothers - Get Yourself High.mpg");

}

public PlayFiles(String loc)throws Exception{

super("MediaPlayer");

setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );

File dir =new File(loc);

cont = getContentPane();

jPPlayer.setLayout(new BorderLayout());

cont.add(jPPlayer);

playFile(dir);

pack();

setVisible(true);

}

publicvoid controllerUpdate(ControllerEvent e)

{

Processor p = (Processor)e.getSourceController();

if(einstanceof ConfigureCompleteEvent){

System.out.println("ConfigureCompleteEvent");

p.setContentDescriptor(null);

p.realize();

}

elseif(einstanceof RealizeCompleteEvent){

System.out.println("RealizeCompleteEvent");

try{

Component c = p.getVisualComponent();

if(c !=null){

jPPlayer.add(c);

pack();

}

}catch(Exception eX){

eX.printStackTrace();

}

p.start();

validate();

}

elseif(einstanceof EndOfMediaEvent){

System.out.println("EndOfMediaEvent");

Component c = p.getVisualComponent();

jPPlayer.remove(c);

validate();

p.removeControllerListener(this);

}

}

privatevoid playFile(File f)throws Exception{

System.out.println("file - '" + f.getPath()+"'");

MediaLocator mL=new MediaLocator("file:" + f.getCanonicalPath());

DataSource dS = Manager.createDataSource(mL);

Processor proc = Manager.createProcessor(dS);

proc.addControllerListener(this);

proc.configure();

}

}

[4301 byte] By [Peregrina] at [2007-11-27 10:05:41]
# 1
Does anybody know?
Peregrina at 2007-7-13 0:41:41 > top of Java-index,Security,Cryptography...
# 2
just put this before setvisiblesetExtendedState(MAXIMIZED_BOTH);regardsAniruddha
Aniruddha-Herea at 2007-7-13 0:41:41 > top of Java-index,Security,Cryptography...
# 3
setExtendedState(MAXIMIZED_BOTH) works correctly, but its operate with Frame (title bar still visible). Is it possible to set title bar as invisible? Or is there the method which operate with video (not Frame or Window).
Peregrina at 2007-7-13 0:41:41 > top of Java-index,Security,Cryptography...
# 4
then use JWindow
Aniruddha-Herea at 2007-7-13 0:41:41 > top of Java-index,Security,Cryptography...