title: how to create a JDialog which can only floating within its parent frame
body: <p>I want to create a <code>JDialog</code> which can only float within its parent Frame. That is it cannot be dragged out from its parent frame. Any idea? mouse-motion listener?</p>
  
  <p>thanks,</p>
  
  <p><strong>EDIT:</strong></p>
  
  <ol>
  <li>My applicaiton is based on frame not internal frame, so I cannot use <code>JInternalFrame</code></li>
  <li>I need a non-modal dialog so, I cannot use JOptionPane with internal feature.</li>
  </ol>