hello everyone!
This program loads a video and i d like to display a text from a file
ON the video.Something like a subtitle.
i am going to create a combobox in which the user will choose the language (english or greek).

Depending user choice, the system will display the string containing in a file, on the video for some msec.

can anyone please help me on how i can do that?

PHP Code:
class VideoPlay extends Frame {
  Player pl = null;
  Component controlPanel = null, visualComponent = null;
  public static void main(String[] args) {
     VideoPlay rtv = new VideoPlay();
  VideoPlay() {
    super("Video Player");
    setLayout(new BorderLayout());
    setBounds(100, 100, 200, 200);
    try { 
        MediaLocator locator = new MediaLocator("file:vid007");
        pl = Manager.createPlayer(locator);
    } catch(Exception e) { System.out.println("ERROR: "+e); }
    if (pl != null) {
      pl.addControllerListener(new ControllerAdapter() {
         public void realizeComplete(RealizeCompleteEvent e) {
           controlPanel = pl.getControlPanelComponent();
           if (controlPanel != null) add("South", controlPanel);
           visualComponent = pl.getVisualComponent();
           if (visualComponent != null) 
              add("Center", visualComponent);
              System.out.println("ERROR: Null Visual Component");
         public void endOfMedia(EndOfMediaEvent e) {
           pl.setMediaTime(new Time(0));
    addWindowListener(new WindowAdapter() {
       public void windowClosing(WindowEvent e) {
         if (pl != null) pl.close();