title: How to create custom expandable dialog using ControlsFX
body: <p>I want to create the same dialog as the one created when using Dialogs.showException(), but instead of showing the stacktrace, I want to show my custom pre-formatted text. The functionality that I want is the Details button behavior.</p>
  
  <p>What I want is this:</p>
  
  <p><img src="https://i.stack.imgur.com/b0Q57.png" alt="enter image description here"></p>
  
  <p>But not with the printed stacktrace.</p>
  
  <p>What I have tried is to create my own Throwable, populate it with StackTraceElement objects(filled with the the text that I need) and overwrite the getStackTrace() method to return the populated array. The problem is that the stack trace is displayed from the point where the exception is thrown so the text that I need is shown at the bottom of the expanded pane.</p>