Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to bring JFrame to front?

843805Jan 12 2007 — edited Oct 14 2009
Hi everybody,

I have a JFrame which contains a button that opens another JFrame. This second JFrame is actually already created, clicking the button will just make it visible. Does anybody know how I can move this second JFrame to the front? I tried frame.toFront(), but that didn't work.

Best regards,
Jethro Borsje
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 11 2009
Added on Jan 12 2007
11 comments
3,549 views