Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Use a Java Applet to open and position a HTML Window

  Asked By: Sunil    Date: Apr 21    Category: Java    Views: 942

I am trying to open a html window from a Java applet but I need to be
able to control the size, position, toolbars being displayed etc. I
have looked into the appletContext.showDocument methods but these
seem to only let you specify the window in which to open the new page
without any properties of the page.

I have also tried using the JSObject class (found in a jaws.jar file)
to call a javascript method on the same page as the applet, which
then gives me access to the window.open command. This was perfect
until I started trying to open the new window, close it, and then
open it again using the same functionality as this just causes the
browser to completely lock up.

Has anyone got any suggestions to open the page through the applet or
how I can stop the page locking up when using the JSObject class???

Any help will be greatly appreciated - this is driving me crazy.



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Use a Java Applet to open and position a HTML Window Or get search suggestion and latest updates.