Label text doesn't show up in a applet created with Visual J++

Posted on 2002-03-19
Medium Priority
Last Modified: 2006-11-17
The first day I am using the Visual J++. I tried to create an applet with the following code :

style="LEFT: 0px; VISIBILITY: visible; TOP: 0px"
width=320 height=200>

  <PARAM NAME="foreground" VALUE="FFFFFF">
  <PARAM NAME="background" VALUE="008080">
  <PARAM NAME="label" VALUE="This string was passed from the HTML host."> //<=== Line (A)

Also, in the code of the applet, I inserted :

  public void paint(Graphics p1)
    p1.drawString("My First Visual J++ Applet", 10,35); //<=== Line (B)

right under:

    public class HelloVisualJ extends Applet
where "HelloVisualJ" is the applet class name.

I was told that the applet should look like:

| This string was passed from the HTML host. |
| My First Visual J++ Applet                 |
|                                            |
|                                            |
|                                            |

but it showed up in my browser as a blank applet --- both Line (A) and Line (B) were not showing up

Does anyone know what's going on ????????

Question by:shapeless
LVL 18

Accepted Solution

bobbit31 earned 200 total points
ID: 6881151
java is case sensitive:

try code=HelloVisualJ.class instead of


Author Comment

ID: 6881268
Shoot !!! That worked !!! :)

Thx a lot.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question