The applet above should display "Hello, OS X". As illustrated on this page, it does so properly on Applet Launcher for OS X with the following applet HTML code:
<APPLET code=
"OSXParam.class" WIDTH=600 HEIGHT=200></APPLET>
However, when a PARAM line shown below is added between these two lines above, the applet fails on Applet Launcher for OS X using the same class file, as illustrated by clicking this link to the page with the parameter line.
<PARAM NAME="query" VALUE="">
If you have any insights, workarounds or comments about this test page please contact Mickey Segal. A listing of many Macintosh Java bugs with demonstration applets is at this link, including information on how to add any necessary Java plugins.
The source code is shown below and can be downloaded from this link:
import java.applet.*;
import java.awt.*;
public class OSXParam extends Applet {
public void init()
{
setBackground(Color.white);
}
public void paint(Graphics g)
{
g.drawString("Hello, OS X", 100 , 25);
}
} // END OF Class OSXParam