Help plz-internalFrames--buttons-video..any jgurus around??

Hi to all
My name is Dimitrios and i am developing a program which is consisted by a client program and a server program. The purpose of the application is to stream video (TV channels) to the client.The server program is used to authenticate the client (at the moment) where the client after the authentication is providing a GUI in order to choose the Chanel and watch the video.In more detail:
Client site:
2 classes ( frames)
The 1st frame (login.java) prompts for username and password. The server (prog) authenticates the pass and if correct the client "moves" to the next frame (by set visible false to the 1st frame).
The 2nd frame (client.java) is the actual GUI of the program. It is consisted by two buttons (assume we have two T.V channel options) and an internal frame which is where the video is displayed.
In order to develop this program i have split up the tasks and try to solve each task at a time. What i mean is:
1)Create an authentication procedure (DONE)
2)Create the GUI of the client (DONE)
3)Create the operation where button is pressed and video is played IN THE INTERNAL FRAME (in progress)
4)Stream video (in progress)
Since i don't know yet how am i going to produce the streaming what iv done is to embed a simple quicktime player in the client and open a movie file to produce video. I need to produce the video in the internal frame first.
My question is:
1) How am i going to produce the video in the internal frame after the button is pressed. Note that the button is not in the internal frame (obvious i think).
2)i decided to use quicktime player API cause during my research i fpund out that is the best option.I did trie JMF but i wasnt that satisfied. Do you propose any other solution. I did try to find out if i could embed Windows Media player in my frame but i didn't find any info regarding WMP and java frames.
I do have some knowledge about java but i wouldnt consider my self an advance programmer. THIS IS NOT A JOB CASE but a presentation from my UNI.
Thanks in advance for reading all this.
ps1 i am using netbeans
ps2 in the code below i havent icluded the initcompomens() method cause my code is too big for the post
My Code:
CLIENT-second Frame
import java.awt.*;*
*import java.awt.event.*;
import javax.swing.*;*
*import java.io.File;*
*import quicktime.*;
import quicktime.app.*;*
*import quicktime.app.players.*;
import quicktime.app.display.*;*
*import quicktime.io.*;
import quicktime.std.*;*
*import quicktime.std.movies.*;
import quicktime.*;*
*import javax.swing.*;
public class client extends javax.swing.JFrame {
   static Movie movie;
    /** Creates new form client */
    public client()
       initComponents();
       setVisible(true);
      // login.setVisible(false);
   // @SuppressWarnings("unchecked")
{METHOD INITCOMPOMENTS
Too big to fit one the post  }                   
    private void buttonClickAnt(java.awt.event.MouseEvent evt) {                               
    try {
      QTSession.open();
      FileDialog fd = new FileDialog (this,"Select source movie",FileDialog.LOAD);
      fd.show();
      if (fd.getFile() == null)
          return;
      // get movie from file
      File f = new File (fd.getDirectory(), fd.getFile());
      OpenMovieFile omFile =
        OpenMovieFile.asRead (new QTFile (f));
      movie = Movie.fromFile (omFile);
      // get a Drawable for Movie, put in QTCanvas
      MoviePlayer player = new MoviePlayer (movie);
      QTCanvas canvas    = new QTCanvas();
      canvas.setClient (player, true);
      add (canvas);
      // windows-like close-to-quit
      addWindowListener (new WindowAdapter() {
        public void windowClosing (WindowEvent e) {
          QTSession.close();
          System.exit(0);
    } catch (Exception e) {
      e.printStackTrace();
        try {
      movie.start();
    } catch (Exception e) {
      e.printStackTrace();
    private void trip(javax.swing.event.InternalFrameEvent evt) {                     
    // Variables declaration - do not modify                    
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JInternalFrame jInternalFrame1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    // End of variables declaration                  
}Edited by: tripis on Feb 11, 2009 10:41 AM

If you feel more adventurious and have Afer Effects, you might be interested in this series of screen captures
http://vimeo.com/album/214460.
John Rich

Similar Messages

Maybe you are looking for

  • [MESSAGE.GENERAL] How can take the actual error text for ABAP proxy error?

    Hi... I'm a ABAPer. I got to create outbound abap proxy for synchronous server proxy and described below. My problem is program can not catch the actual error message when occurred error during send data to XI. The return message is just 'MESSAGE.GEN

  • How can I import a new version of a distributed form?

    I recently imported and distributed a PDF form created in Acrobat 9.0. I would like to add some ToolTips to this form, but the downloaded version. Is there a way for me to import a new version and still accept responses from those who received the or

  • Client auth error

    I am using iPlanet Web Server 6.0 SP4 on Solaris 2.8 that is enabled for SSL and Client-auth. In order to validate the client certificate, I configured this server to use my own Plug-in by adding authTrans line in "obj.conf": <Object name=default> Au

  • Getting same index size despite different table size

    Hello, this question arose from a different thread, but touches a different problem, which is why I have decided to post it as a separate thread. I have several tables of 3D points. The points roughly describe the same area but in different densities

  • Installing BB Desktop for Mac

    I am trying to install BB Desktop for Mac, I know the min req is verson 10.5.5   I have 10.4.11, do I have to buy new Mac software?  Thanks!