• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

html and jar file?

 
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>
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • 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>
 
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.
 
sunglasses are a type of coolness prosthetic. Check out the sunglasses on this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic