title: JDialog - How can I set a fixed width and variable height?
body: <p>I have a <code>JDialog</code> object that, quite simply, <strong>MUST be 200 pixels wide</strong>, regardless of its contents.</p>
  
  <p>I need to be able to have the <strong>height adjusted dynamically</strong>, to always ensure that all the content is shown. How do I go about it?</p>
  
  <ul>
  <li>I've tried overriding <code>JDialog.getPreferredSize()</code> method, but I can't figure out what to add for the height value.</li>
  <li>I've tried checking if the <code>main</code> JPanel <code>isValid()</code> and <code>isShowing()</code>, however, both return true as long as a part of the Panel is actually visible.</li>
  </ul>