"Hello World" Java Applet with Protection From Silly Patents

This page contains a simple Java Applet that should display "Hello world" in a small rectangle. 

The applet tags are specified in a separate JavaScript file instead of the usual practice of being in the same HTML page.  This is a workaround to a patent dispute in which Microsoft complied with the plaintiff by requiring Internet Explorer users to click an extra time to run Java applets specified on the same HTML page.  The workaround is to move the applet tag code to an external JavaScript file and call a JavaScript function from the HTML page:

In a browser with the patent-defense patch installed, the regular version of a Hello World applet displays a message about clicking the mouse or keyboard to activate the applet, typically "Click to activate and use this control".  That annoyance does not occur here due to the applet tags being specified externally, as recommended by Microsoft.

This page calls the JavaScript function "getAppletTags" located in the specifyApplet.js file using two lines in this page:

Between the HEAD tags:
<script src="specifyApplet.js" language="JavaScript" type="text/javascript"></script>

Where I actually insert the applet:
<script language="JavaScript"type="text/javascript">getAppletTags();</script>

The specifyApplet.js file consists of the following:

function getAppletTags()
{
    document.write('<APPLET code="Hello.class" WIDTH=130 HEIGHT=40> </APPLET>');
}

If you have any insights, workarounds or comments about this test page please contact Mickey Segal.  A listing of  many Java resources is at this link.

Java applet source code:  

import java.applet.*;
import java.awt.*;

public class Hello extends Applet {

public void init() 
{
    setBackground(new Color(225,225, 255));
}

public void paint(Graphics g)
{
    g.drawString("Hello world", 25 , 25);
}
}