Java Lab 2 Question 2

This page extends the example from Question 1 by passing 3 more parameters to control the text display properties of the applet. The applet has default values if the User does not pass in the parameters. The HTML side looks like:

<applet codebase = "java/" code=HelloWorld22.class width=300 height=100>
<PARAM name=message      value="Hello there yourself">
<PARAM name=fontname     value="Helvetica">
<PARAM name=pointsize    value="18">
<PARAM name=msgbold      value="YES">
</applet>

The output of this applet is as follows:

Applet Source