title: javafx - how to bind the DialogEvent.DIALOG_SHOWN on a Dialog?
body: <p>On a Stage I can do the following:</p>
  
  <pre><code>    getScene().addEventHandler(WindowEvent.WINDOW_SHOWN, s -&gt; {});
  </code></pre>
  
  <p>On Dialog, the following DOES NOT WORK:</p>
  
  <pre><code>    getDialogPane().getScene().addEventHandler(WindowEvent.WINDOW_SHOWN, s -&gt; {});
      getDialogPane().getScene().addEventHandler(DialogEvent.DIALOG_SHOWN, s -&gt; {});
  </code></pre>
  
  <p>This works:</p>
  
  <pre><code>setOnShown(e -&gt;  {});
  </code></pre>
  
  <p>But I want do use the addEventHandler so other events can be added.</p>
  
  <p>How can I archieve this?</p>