title: Creating a JFXDialog using an existing fxml script
body: <p>I'm trying to show a loading popup when my program is running tasks in the background. I'm using Jfoenix for my program to give it the material design look, and I'm trying to use JFXDialog to display the loading popup. I created a popup in a stack pane using scene builder...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;?import com.jfoenix.controls.JFXSpinner?&gt;
  &lt;?import javafx.geometry.Insets?&gt;
  &lt;?import javafx.scene.layout.StackPane?&gt;
  &lt;?import javafx.scene.text.Font?&gt;
  &lt;?import javafx.scene.text.Text?&gt;
  
  
  &lt;StackPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="70.0" prefWidth="180.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1"&gt;
     &lt;children&gt;
        &lt;JFXSpinner&gt;
           &lt;padding&gt;
              &lt;Insets right="100.0" /&gt;
           &lt;/padding&gt;
        &lt;/JFXSpinner&gt;
        &lt;Text strokeType="OUTSIDE" strokeWidth="0.0" text="Loading"&gt;
           &lt;StackPane.margin&gt;
              &lt;Insets left="50.0" /&gt;
           &lt;/StackPane.margin&gt;
           &lt;font&gt;
              &lt;Font name="Roboto Medium" size="20.0" /&gt;
           &lt;/font&gt;
        &lt;/Text&gt;
     &lt;/children&gt;
  &lt;/StackPane&gt;
  </code></pre>
  
  <p>I am trying to use this in a JFXDialog...</p>
  
  <pre><code>private void createLoadingScreen() throws IOException{
      StackPane pane = FXMLLoader.load(getClass().getResource("LoadingScreen.fxml));
      StackPane stackPane = new StackPane();
      mLoad = new JFXDialog(stackPane, pane, JFXDialog.DialogTransition.CENTER);
  }
  </code></pre>
  
  <p>I know that I'm not exactly doing this right, since it doesn't show up when I try to bring it up at the appropriate time. However, I don't know what I'm doing wrong exactly.
  Anyone have any pointers on this?</p>