Re: Help Menu - opens frame which does not go to front



Babu Kalakrishnan wrote:
johnmmcparland wrote:
....
yea a modal dialog will work but it's not the right way to do it. If I
use that then the use cannot make changes to the main window (even if
it had content ;) ) but thanks anyway.

Untested :
Try a non-modal (with a parent specified as your main frame), and try to
call toFront() on it.

The second example actually does that, but now that I look
at it more closely, I note that setVisible(true) is called after
the call to toFront().

The OP might try calling toFront() and requestFocus() *after*
the dialog is visible..

Andrew T.

.