}
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent;
import uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer;
public class MainWindow extends JFrame
{
/**
*
*/
private static final long serialVersionUID = 1L;
EmbeddedMediaPlayerComponent playerComponent;
// private static final long serialVersionUID = 1L;
private JPanel contentPane;
public MainWindow()
{
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 656, 397);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
contentPane.setLayout(new BorderLayout(0, 0));
setContentPane(contentPane);
JPanel videopane = new JPanel();
contentPane.add(videopane,BorderLayout.CENTER);
videopane.setLayout(new BorderLayout(0, 0));
playerComponent = new EmbeddedMediaPlayerComponent();
videopane.add(playerComponent);
}
public EmbeddedMediaPlayer getMediaPlayer()
{
return playerComponent.getMediaPlayer();
}
}