[hotjoe.com] HotJoe Java Help Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Visit java.com
Please send email if you are having login problems - see the posts below for more info.
Hotmail and Yahoo! users - please see the Hotmail post or the Yahoo! post for information on lost emails.
Applet Not Showing in Web  XML
Forum Index » GUI Development
Author Message
Wazzat05

Newbie

Joined: 05/15/2007 13:06:13
Messages: 7
Offline

The program was compiled and runs in Eclipse. When I try to add the <APPLET> tag into the HTML file, the applet doesn't show. It's just one white box, with a red X, and a grey boarder.

HTML code:



Is there some program that you must have to show the applets?
stdunbar

Newbie
[Avatar]

Joined: 06/22/2005 14:51:37
Messages: 849
Location: Superior, CO, USA
Offline

It looks like you HTML is correct. Can you show the Java code too?

Thanks for using the forums at hotjoe.com
[WWW] [Yahoo!] [ICQ]
Wazzat05

Newbie

Joined: 05/15/2007 13:06:13
Messages: 7
Offline



Then the thermometer class:


All of this runs in Eclipse.

Perhaps it's because when I try to open the ConvertWithGUI.class from My Computer it comes up with the message, "Java Virtual Machine Launcher: Failed to load Main-Class manifest attribute from C:\..."
stdunbar

Newbie
[Avatar]

Joined: 06/22/2005 14:51:37
Messages: 849
Location: Superior, CO, USA
Offline

I can't compile your program without the Thermometer class but I'm think I know what is going on. Your HTML only references your one class. But you're really dependent on your Thermometer class and the BreezySwing.jar file. The easiest (and that is a relative term) to handle this is to package all of your code in a single Jar file. There is an extensive Java Applet Tutorial on the Sun site that goes into this at least somewhat. It is a bit of a pain though.

Let us know if you get stuck.

Thanks for using the forums at hotjoe.com
[WWW] [Yahoo!] [ICQ]
 
Forum Index » GUI Development
Go to:   
Powered by JForum 2.1.9 © JForum Team
This site run by Scott Dunbar of Xigole Systems. © 2005-2011 - Scott Dunbar
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners
hotjoe.com, xigole.com, and Scott Dunbar have no affiliation with Oracle