Home » questions » still cant get applet into html file?

still cant get applet into html file?

2006-07-31 05:25:21, Category: Programming & Design
i'v created a japplet using netbeans but i cant get it into a html file. the closest i'm getting is a blank webpage with a gray square. At the bottom of the page it says applet started so i'm guessing the applet has been found and loaded, just that its not displaying properly. If it'll be any help, here is the applet tag i'm using; APPLET codebase="file:/C...CSPresit/build/classes/" code="p1/ModuleLister.class" width=350 height=350> thanks in advance. i'v tried opening the file in firefox but i'm still getting the same result ok i'v got the applet to run inside a web browser but the buttons are too small. i'v tried risizing them in netbeans and also by changing the source code but still nothing.

Answers

  1. Ed

    On 2006-07-31 07:59:47


    I don't think you want that hard coded system path there as the codebase. Instead try a relative path from the web page location.
  2. JavaClark

    On 2006-07-31 06:00:57


    Are you using Microsoft internet explorer to deploy the class file. first check if the browser support applet tags. Sometimes the tag Have to be written in object tags.Try other browsers to see if your code works.The good thing about java is the write once run anywhere style of execution.Also check your JRE while you are at it :) Assumption access to internet. http://www.java.com