java appletcontext problem - browser not closing

Hi,

I am generating a .csv(excel) file that is to be saved, and opening it in a new browser window using :- mainApplet.getAppletContext().showDocument(new URL(urlString), "_blank");

But, once i click on "save" the new browser which opened with it remains as it is. I want i to be closed automatically after i click on save. Any ideas?

Thanks,

-V

[376 byte] By [Keviva] at [2007-11-27 7:50:35]
# 1
there's a way to access the browser's javascript (I think it's through a Netscape JSObject). Use that and call window.close()
tjacobs01a at 2007-7-12 19:31:37 > top of Java-index,Desktop,Core GUI APIs...
# 2
guess its the same logic for IE too then?> there's a way to access the browser's javascript (I> think it's through a Netscape JSObject). Use that and> call window.close()
Keviva at 2007-7-12 19:31:37 > top of Java-index,Desktop,Core GUI APIs...
# 3
this was the solution we used with IE
tjacobs01a at 2007-7-12 19:31:37 > top of Java-index,Desktop,Core GUI APIs...