title: JavaFX: Get preview image for media
body: <p>I have a <code>MediaPlayer</code> with a <code>Media</code> object which are displayed in a <code>MediaView</code>. I want to create a <code>Button</code> which displays a preview shot of the media with some text. The constructor for the <code>Button</code> looks like this:</p>
  
  <pre><code>public Button(java.lang.String text,
    Node graphic)
  </code></pre>
  
  <p>How do I retrieve the <code>Node graphic</code> parameter from my <code>Media</code>/<code>MediaPlayer</code> object, preferably at some specified frame inside of the media file?</p>