// Create the player.
JPanel playerPanel = new JPanel(new BorderLayout());
playerPanel.setBorder(BorderFactory.createTitledBorder("VLC Player component"));
final JVLCPlayer player = new JVLCPlayer();
// We load the player here, instead of everytime a new video is loaded.
player.load();
playerPanel.add(player, BorderLayout.CENTER);
contentPane.add(playerPanel, BorderLayout.CENTER);
// Create the components that allow to load a file in the player.
GridBagLayout gridBag = new GridBagLayout();
GridBagConstraints cons = new GridBagConstraints();