p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning Java 2 (http://p2p.wrox.com/forumdisplay.php?f=30)
-   -   Applets (http://p2p.wrox.com/showthread.php?t=1152)

jwilliams2000 July 1st, 2003 03:32 PM

I have Java 2 Plug-In installed. It is showing in my "Control Panel".
In "Internet Options", on the "Advanced" tab there is a line just below "HTTP 1.1 Settings" that reads "Java(Sun)" with Sun's logo on the left and a checkbox that is checked with a line to the right of the checkbox that reads "Use Java 2 v1.4.1_01 for <applet> (requires restart)". But yet when I run the following html code all I get is an empty gray square in the browser (Internet Explorer 6)

<TITLE> A Simple Program </TITLE>
<APPLET CODE="MyFirstApplet.class" WIDTH=200 HEIGHT=200>

endamist August 2nd, 2003 07:41 PM

perhaps you did not save the html or htm file in the same location as your applet class file. They have to be in the same folder. The same thing will happen if you upload the htm/html file to the internet but fail to also upload the class file and have them in the same folder, or include the path in the html markup (simpler to have them in the same file folder though)

hope this helps.


All times are GMT -4. The time now is 01:15 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.