title: javax.media packet not found working with JMF on netbeans
body: <p>I am currently using netbeans and i have downloaded the JMF plug in using its own plug in finder.I found one of the codes for video streaming using JMF from the net .The 'import javax.media.player' shows an error that <strong>package javax.media does not exists</strong>. Please help me in this matter as soon as possible.I am a beginner so a possible coding would be appreciated.</p>
  
  <pre><code>import java.awt.BorderLayout;
   import java.awt.Component;
   import java.io.IOException;
   import java.net.URL;
   import javax.media.CannotRealizeException;
   import javax.media.Manager;
   import javax.media.NoPlayerException;
   import javax.media.Player;
   import javax.swing.JPanel;
  
  
  
  import javax.management.*;
  
  
  public class MediaPlayer extends JPanel {
  
      public MediaPlayer() {
           setLayout( new BorderLayout() ); // use a BorderLayout
  
               // Use lightweight components for Swing compatibility
       Manager.setHint( Manager.LIGHTWEIGHT_RENDERER, true );
  
               try
               {
                   // create a player to play the media specified in the URL
                   Player mediaPlayer = Manager.createRealizedPlayer("E:\\FFOutput\\Bollywood");
  
                   // get the components for the video and the playback controls
                   Component video = mediaPlayer.getVisualComponent();
                   Component controls = mediaPlayer.getControlPanelComponent();
  
                   if ( video != null )
                   add( video, BorderLayout.CENTER ); // add video component
  
                   if ( controls != null )
                   add( controls, BorderLayout.SOUTH ); // add controls
  
                   mediaPlayer.start(); // start playing the media clip
               } // end try
               catch ( NoPlayerException noPlayerException )
               {
                   System.err.println( "No media player found" );
               } // end catch
  
      }
  }
  </code></pre>