Ayuda con JMF y Mysql

Miguel Angel Fuentes Garcia <[email protected]>
Newsgroups gmane.comp.java.javaspain
Message-ID <[email protected]>
Hola  lista   soy nuevo en java, estoy haciendo una palicacion con
Java Media  Framework y la  quiero  conectar  a  una  base de  datos
donde  estan las URL  de la ubicación del  archivo a  reproducir pero
no se  como hacerle,
Donde   puedo  poner  la  consulta  en SQL?

Gracias

 el codigo  es  este:

   1. package cliente;
   2.
   3. /**
   4.  *
   5.  * @author manix
   6.  */
   7.      import java.net.MalformedURLException;
   8.      import java.net.URL;
   9.      import javax.swing.JFileChooser;
  10.      import javax.swing.JFrame;
  11.
  12.      public class MediaTest
  13.     {
  14.        // lanzar aplicacion
  15.        public static void main( String args[] )
  16.        {
  17.           JFileChooser fileChooser = new JFileChooser();
  18.
  19.           int result = fileChooser.showOpenDialog( null );
  20.
  21.           if ( result == JFileChooser.APPROVE_OPTION )
  22.           {
  23.              URL mediaURL = null;
  24.
  25.              try
  26.              {
  27.                 // tomar la URL
  28.                 mediaURL = fileChooser.getSelectedFile().toURL();
  29.              }
  30.              catch ( MalformedURLException malformedURLException )
  31.             {
  32.                 System.err.println( "No se pudo crear la URL" );
  33.              }
  34.
  35.              if ( mediaURL != null )
  36.              {
  37.                 JFrame mediaTest = new JFrame( "Media" );
  38.                 mediaTest.setDefaultCloseOperation(
JFrame.EXIT_ON_CLOSE );
  39.
  40.                 MediaPanel mediaPanel = new MediaPanel( mediaURL );
  41.                 mediaTest.add( mediaPanel );
  42.
  43.                 mediaTest.setSize( 300, 300 );
  44.                 mediaTest.setVisible( true );
  45.              }
  46.           }
  47.        }
  48.     }

Donde   puedo  poner  la  consulta  en SQL?

Gracias
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.