}
private void initFX(final JFXPanel fxPanel) {
// This method is invoked on the JavaFX thread
try {
final MediaPlayerScene mediaPlayerScene = new MediaPlayerScene();
UISession.setMediaPlayerScene(mediaPlayerScene);
UISession.setJFXPanel(fxPanel);
} catch (final Throwable e) {
// TODO Auto-generated catch block
e.printStackTrace();