• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

closing !!

 
asheet anand
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Imagine you have an applet running under a window of IExplorer and that applet open a new window(Frame). How can I close that applet window(applet context) and frame too from that frame?
thankx
asheet
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that you would have to close the browser window with JavaScript. I don't know of any function in pure Java to close the browser window because it is not a Java generated window... If you need help on interacting with JavaScript, there is a good tutorial here.
 
asheet anand
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well MR. Manfred Leonhardt you did'nt help me last time i hope you have a answer to this question.
asheet
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think Nathan already answered your question. You can't close a browser from an applet. If you want to close a java frame just use:
Frame f;
f.dispose();
Regards,
Manfred.
 
asheet anand
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thankx for ur advice but i have solve this problem.you just go and have a cup of coffee..
asheet
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic