On 8/28/2012 3:03 PM,
wrote:
> I would like to have a JFrame come up from anther one and center it
> on the screen. Hoe do I do this.
>
> Can I do it with two JFrames produced in NetBeans Design view.
This is an RTFM question, but the answer can be tricky to find, so:
<http://docs.oracle.com/javase/tutorial/uiswing/components/frame.html>
"This example does not set the frame location, but it is easy to do so
using either the setLocationRelativeTo or setLocation method. For
example, the following code centers a frame onscreen:
frame.setLocationRelativeTo(null);"
Read the docs!!