This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I want to be able to execute an applet when the user clicks/selects a button on the webpage.
I love deadlines, I love the whooshing sound they make as they fly by...
Maneesh Godbole wrote:Where as the OP wants to load after some user action.
I'm not clear about why the OP would want to do that. What difference does it make if the applet is loaded along with the page or if it's loaded later? Why not let it load with the page into a hidden div and then just make it visible when the user clicks a button? Ciaran? Any comments?
So i have written my applet and it works on the apple viewer in netbeans but I cant get it to load on the web browser.
I have donwloaded Java 7 and enabled Java in security settings of both Safari and Firefox.
I cant see any errors on the web inspector so am at a bit of a loss.
The HTML file, applet.class and applet.jar are all on my desktop.
The HTML code is:
Thanks in advance
Joined: Mar 22, 2005
I'm not sure what the "web inspector" is, but Java errors would show up in the Java Console.
"applet.class and applet.jar" - the files mentioned in the applet tag are different; just a copy/paste mistake?
Yes thats correct, to check the directory was correct i loaded a image from the same directory as jar and class file, the image loads fine.
Ive tried this tutorial on netbeans https://netbeans.org/kb/docs/web/applets.html and hav read allot on the web but cant seem to get it.
This is my first applet, I must be doing something fundamentally wrong here, pulling my hair out at his stage