< Zurück | Inhalt | Weiter >

17.2.1 Original HTML applet code

For example, when you are developing your applet you might have an HTML page like that shown in figure

17.3 to launch it. This HTML page would work fine with Sun’s Java 2 applet viewer utility.


<html>

<head>

<title>SwingTestApplet − Daniel Selman</title>

</head>

<body>

<APPLET CODE = SwingTestApplet WIDTH = 760 HEIGHT = 390 >

<PARAM NAME = ARCHIVE VALUE = SwingTest.jar>


<!−−"UNUSED PARAMETERS..."−−>

<PARAM NAME = "IMAGE_WIDTH" VALUE = "256">

<PARAM NAME = "IMAGE_HEIGHT" VALUE = "256">


</APPLET>


</body>

</html>


image


Figure 17.3 Running the HTMLConverter. Note the template file option allows you to tailor your converted files to particular operating systems or browsers