How do I create an applet window outside the web browser from within an applet running in that browser?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can open a new window with
AppletContext.showDocument(). You’ll need to have a page on the server with the HTML and all. You get the context from your applet, which inheritsgetAppletContext()from the base class.It’ll end up looking something like this:
If you just want an external window, you can create and show a frame. It’ll be a child of the applet and subject to the same restrictions. Also, it’ll disappear if the user navigates away from the applet page.