title: How do I create a new JFrame, whos' location is set to the middle of another JFrame?
body: <p>I'm new to Java and this is what I'm trying to do:</p>
  
  <p>I have <code>frame1</code>, which has a <code>JButton</code> that, once clicked, creates a new <code>JFrame</code> on top of <code>frame1</code>, which I call <code>frame2</code>. I basically want <code>frame2</code> to be created in the middle of <code>frame1</code>. How do I do this?</p>