title: JavaFx embed Swing JDesktopPane doesn't display anything
body: <p>I have read and ran with success this <a href="http://docs.oracle.com/javase/8/javafx/interoperability-tutorial/embed-swing.htm" rel="nofollow noreferrer">tutorial</a>.</p>
  
  <p>I want to embed internal frames into JavaFX using Swing <a href="https://docs.oracle.com/javase/8/docs/api/javax/swing/JDesktopPane.html" rel="nofollow noreferrer">JDesktopPane</a>.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>public class FxSwingFx extends Application {
  
     private static void createSwing( SwingNode swingNode ) {
        final JDesktopPane desktopPane = new JDesktopPane();
        swingNode.setContent( desktopPane );
        final JInternalFrame if1 = new JInternalFrame( "Hello, ", true, true, true, true );
        final JInternalFrame if2 = new JInternalFrame( " World!", true, true, true, true );
        if1        .setVisible( true );
        if2        .setVisible( true );
        desktopPane.setVisible( true );
        desktopPane.add( if1 );
        desktopPane.add( if2 );
     }
  
     @Override
     public void start( Stage primaryStage ) throws Exception {
        final SwingNode swingNode = new SwingNode();
        final BorderPane root = new BorderPane( swingNode );
        root.setBottom( new Button( "FX Button" ));
        SwingUtilities.invokeLater(() -&gt; createSwing( swingNode ));
        primaryStage.setScene( new Scene( root, 400, 300 ));
        primaryStage.show();
     }
  
     public static void main( String[] args ) {
        launch( args );
     }
  }
  </code></pre>
  
  <p><strong>Result:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/yQem9.jpg" alt="enter image description here"></p>
  
  <p><strong>Question</strong>: Why internal frames aren't shown?</p>