title: JavaFX - dialog with 2 input-fields?
body: <p>I want to create a JavaFX dialog with two input-fields....<br>
  So far i created just dialogs with 1 input-field and I tried to do it with 2, but unsuccessful</p>
  
  <p>I use this code for dialogs with 1 input-field:</p>
  
  <pre><code>public String splitn;
      public void dialogSplit() throws IOException {
          TextInputDialog dialog = new TextInputDialog();
          dialog.setTitle("Split");
          dialog.setHeaderText("After how many characters should be splitted?");
  
          Optional&lt;String&gt; result = dialog.showAndWait();
          if (result.isPresent()) {
              splitn=result.get();
          }
      }
  </code></pre>
  
  <p>Thats how I want it to look like: <img src="https://i.stack.imgur.com/sGaVg.png" alt="enter image description here"></p>