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

  • Zen Xtra problem with latest firmw

    Hi everyone. I've tried searching for this but I can't find the answer. I've recently upgraded my Zen Xtra 60gb to the latest firmware on the Creative Labs downloads page (2.0.03). Re-copied all my music back onto it and some of the albums which were

  • How to launch Photoshop CS5 in either 32 bit or 64 bit mode

    Some of my plugins - (notibly Nik Viveza & Silver Effects Pro) only run in 32bit mode at present.   I would rather work in 64bit (I think - hard to tell if I'm getting any real benefit - will have to try some benchmarks)  I work with large files 100m

  • IMac - Airport (Ethernet) to use Internet hosted by Linksys WRT54G

    Is this scenario possible. iMac G4 hardwired via Ethernet to Airport Base Station DSL Internet fed through Linksys WRT54G My iMac is not Airport enabled so can I use the base station to somehow connect to and utilize the Wireless Internet Connection

  • Pop - up smart form for Process Return Deliveries  in Confirmations

    hi.. For Process Return Deliveries  in Confirmations At item level when i click on print icon a pop -up should show smart form... right now the smart form comes on the ITS and not as a pop - up. Thank you. Regards, Kailash.

  • MacBook with cyrillic keyboard

    Hello friends, Is there anybody knows is it possible to buy MacBook Pro with cyrillic keyboard. I will be in CA at the next week, and maybe I'll have to buy MacBook coz of work. But I very often use russian letters like in my iMac which I whenever bo