Add a JPanel in a BorderPane
<p>I have a <strong>Java</strong> project that plays a <strong>.flv media file</strong> through <strong>JavaFX Media Player</strong>, and it's working fine. Recently, I've been wanting to experiment by adding <strong>GUI components</strong> to this Project <em>(JPanel, JLabel)</em>. However, I've failed in all my attempts and after doing some research turns out it's not as simple as i first thought.. I've tried <em>borderPane.setTop(JLabel)</em> but I get a <strong>"Cannot convert Jlabel to Node"</strong> error.. I feel that I'm missing something</p>

<p>If anyone has any idea why this isnt working for me, I would greatly appreciate any form of explanation or examples.. :)</p>

<p>Here is the code if it might be of use to you!</p>

<pre><code>@Override
public void start(Stage stage){
    String path = "Data/Video/Clip.flv";
    Media media = new Media(new File(path).toURI().toString());

    MediaPlayer mediaPlayer = new MediaPlayer(media);
    MediaView mediaView = new MediaView(mediaPlayer);

    BorderPane borderPane = new BorderPane();
    borderPane.setCenter(mediaView);

    //borderPane.add(logoPanel);                            &lt;&lt;&lt;&lt;&lt;&lt;&lt; Error

    Scene scene = new Scene(borderPane, 1024, 800);
    scene.setFill(javafx.scene.paint.Color.BLACK);

    stage.setTitle("Media Player");
    stage.setScene(scene);
    stage.show();

    mediaPlayer.setAutoPlay(true);
</code></pre>