• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html and jar file?

 
jordan gong
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir/Madam:
My applet file is Cal.class, and it uses several other class files and a data file in the cc.jar file. When I open the html file, the applet pops up, I can see the textfields, radiobuttons, but the functions do not work. Is there anything wrong with my html code?

<HTML>
<HEAD>
<TITLE>Cal</TITLE>
</HEAD>
<BODY>
<H1>Cal</H1>
<APPLET CODE=Cal.class ARCHIVE=cc.jar WIDTH=450 HEIGHT=550>
</APPLET>
</BODY>
</HTML>
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applet is not part of the Programmer Cert.
I'm moving this to Applets.
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
jordan gong
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code is like this
<HEAD>
<TITLE>Cal</TITLE>
</HEAD>
<BODY>
<H1>Cal</H1>
<APPLET CODE=Cal.class ARCHIVE=cc.jar WIDTH=450 HEIGHT=550>
</APPLET>
</BODY>
</HTML>
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jordan,
Object functionality is not related to HTML. Once your applet appears the HTML is complete and your applet java classes take over. Therefore, the fault lies in your java applet code. When the applet has loaded into your browser, look at the Java console and see if any errors are happening. If none are then make sure you have at least registered some listeners and that the methods are actually being called (usually placing a System.out.println call at the beginning of the methds works great).
Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic