Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to close an html window by clicking an applet button ?

 
mkgeetha
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
i need to close my html window when a button in the embedded applet is clicked. is there any method to do this ?
thanks
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two things.
First. Please don't post the same message to more than one forum
. Choose an appropriate forum and post the message once. Even if the message might be appropriate to more than one forum it's very likely that people able and willing to answer it will read more than one forum and find your message.
Second. The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
You can't close the browser from an applet, as far as I know. The applet is running in the Browser's JVM and calling System.exit(0) will probably generate an exception.
What are you trying to achieve? Maybe there is some other way to get there.
 
Geetha MK
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have an applet in an html window. it has among other things , a close button. when user clicks it, the window should be closed.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic