title: How to show scrollbar in Swing's JOptionPane.showOptionDialog?
body: <p>In our Swing application, we show error messages using <strong>JOptionPane.showOptionDialog</strong>. However, some of the messages are long and we would like to <strong>limit the height</strong> of the dialog and <strong>show a scrollbar</strong>. We thought of using HTML and CSS in the dialog text to limit the height and show scrollbar, but it seems Swing's HTML &amp; CSS <a href="https://stackoverflow.com/questions/1057137/css-with-swing">is</a> <a href="https://stackoverflow.com/questions/937393/can-i-apply-css-to-swing-text-components">quite</a> <a href="https://stackoverflow.com/questions/872871/which-html-tags-are-supported-in-swing-components">limited</a>.</p>
  
  <p>Can anyone thing of a way to do it, other then developing our own dialog to show error messages?</p>
  
  <p>Thanks<br>splintor</p>