• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

From the Applet to the Browser

 
Rob Gilchrist
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have an Applet that opens a connection to a Servlet that downloads a report in HTML format when a button is clicked.
At the moment the Html pags is displayed using a JEditorPanel, which allows the Hml to be rendered.
What I would like to happen is that when the button is clicked a new browser window is opened and the Html is displayed in the new window.
Any ideas how to do this??
Thanks in advance
Rob
 
u sankarlal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the above said is achieved thro' getappletcontext and showdocument() method, use showdocument(url,"_blank") to get opened in a new window.
let me know.
thanks
Friendly yours,
Umamaheswari SAnkarlal
 
Rob Gilchrist
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for this, it works well in Netscape, but in IE it causes the window to hang, do you know of any reason for this.
Cheers
Rob
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic