I want to make a button to cleanly end my applet and close the tab it is in. I am running the applet in firefox and I am currently using a method as follows at the end of the text. You will notice that its body is empty. This is because I have no idea what to put in here. I thought maybe System.exit but that was clearly too simple and it did not work. Does anyone know how to do what I want?
[code]
private void killAppletCloseTab(java.awt.event.ActionEvent evt) {
}
[\code]
Thanks,
bm
Close a tab in Firefox from applet
Started by brightmatter, Sep 15 2008 11:23 AM
2 replies to this topic
#1
Posted 15 September 2008 - 11:23 AM
|
|
|
#2
Posted 15 September 2008 - 12:23 PM
This may not be possible. Java applets have some fairly stringent limitations on what they can do, and issuing commands back to the browser they are running in may be one of them.
#3
Posted 15 September 2008 - 04:03 PM
Java applets have very limited functionality in issuing commands back to the browser. You may however be able to export commands to JavaScript or a php script (I've created both types in the past) to create this behavior, but in Java itself, I don't think its possible.


Sign In
Create Account


Back to top









