Running kAWT Applications as Applet or MIDlet

In order to run kAWT applications as Applet or MIDlet, they must be derived from the special wrapper class de.kawt.KAWTlet. The KAWTlet works similar to a MIDlet. The HelloKawt.java file demonstrates a minimal implementation. The KAWTlet is invoked by a special wrapper class. The name of the wrapper class is KawtWrapper, where the package name depends on the target platform.

For compatibility, it is recommended to add a simple main metod to the KAWTlet implementation that instantiates the KAWTlet and calls startApp ()

Applet Sample Code

<applet code="de.kawt.impl.j2se.KawtWrapper.class" 
        WIDTH="80" HEIGHT="30">
  <param name="KAWTlet" value="HelloKawt">
</applet> 

MIDP Instructions

  1. Build a JAR file containing your application and the kAWT classes required for MIDP.
  2. Enter "de.kawt.impl.midp.KawtWrapper" as MIDlet to be started in the JAD file.
  3. Add a "KAWTlet" property to the JAD file. Enter the class name of your KAWTlet implementation as value of the "KAWTlet property

see also: installation instructions for J2MEWTK