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!

JApplet as parent for a dialog possible?

843807Nov 20 2002 — edited Nov 26 2002
Hi.

I've got a JApplet which opens a modal dialog window for some user interaction. Usually you set the dialog's parent window or frame so that the dialog always appears in front of the parent when the user switches to that task.

But since an Applet is not a frame or window, I'm not able to set it to be the dialog's parent. This results in the browser window being able to be selected - then it comes to the front, but since a modal dialog (the one of the applet) is opened, you cannot access it.

Is there any way to specify the applet or the browser window as the dialog
's parent? Currently I'm using null as parent - standalone dialogs that is.

Any help is greatly appreciated.
cheers,
kelysar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 24 2002
Added on Nov 20 2002
10 comments
118 views