title: Instantiate JDialog from JPanel
body: <p>I've got a <code>JPanel</code>, which I want to respond to a mouse click and then open a <code>JDialog</code>. The <code>JDialog</code> constructor needs an instance of <code>JFrame</code> and not <code>JPanel</code> - how do I work around this?</p>