Question 1: When I execute the KawtSamle I got the error "Cannot load class java/awt/Frame". How do I solve this error?

Question 2: When I execute the KawtSamle I got the error "Cannot load class java/io/FileInputStream". How do I solve this error?

Question 3: Why can't I use grayscales on my Visor or Palm using PalmOS3.1 or PalmOS3.3?

Question 4: Running the KawtSample.prc with the new kAWTv0.81 causes the folowing error "No such Method add(Ljava/awt/Menu;)V". What went wrong?

Question 5: How do I speed up the long kAWT-class loading times?

Question 6: How do I use GIF-Images with kAWT?

Question 7: How do I run the KawtSample using the MIDP Emulator EA1 from SUN?

Question 8: How do I install kAWT on my Palm?

Question 9: Is it possible to display the keyboard- or the numeric field dialog from a KVM/kAWT application?

Question 10: How do I use kAWT with OTI J9?

Question 11: How can I access the Spotlet beam methods when using kawt?

Answer 1:

This error occurs, if you haven't installed the kawt.pdb class database. Please install at least the file kawt.pdb onto you machine or POSE, or use the ColorKVM with ROMized kAWT.

Back to questions...

Answer 2:

This error occurs, if your application wants to load the additional class java.io.FileInputStream which is included inkawt_io_net.pdb or kio_net.pdb. It's not possible to install the files kawt_io_net.pdb of kio_net after kawt.pdb is already installed. Please reinstall the KVM.prc and the KVMutil.prc. After the KVM installation use kawt_io_net.pdb instead the kawt.pdb file which contains only the java.awt-package. The package java.io is also included in the ColorKVM with ROMized kAWT. If you are using the ROMized ColorKVM no additonal pdb-class files are neccessary to run the KawtSample, kCmd or kFtp.

Back to questions...

Answer 3:

For our ColorKVM we use new the PalmOS3.5 feature set. In older versions of PalmOS there are no functions like WinRGBToIndex or WinSetForeColor or WinSetBackColor to draw in color or grayscale mode. However the Color feature is currently only available for PalmOS 3.5 devices.

Back to questions...

Answer 4:

In kAWTv0.80 the method signature in MenuBar.add (Menu m) returns nothing (void) but in the AWT the method returns the inserted Menu.
We have changed the signature of MenuBar's add() method to "public Menu add (Menu m)" in kAWTv0.81 to be compatible with the AWT MenuBar.
Please recompile the KawtSample to solve this problem.

Back to questions...

Answer 5:

To increase the loading times of the kAWT Classes try to use the ColorKVM with ROMized kAWT. This kind of KVM is enhanced for the use of kAWT and Color. ROMizing means that the additional kAWT classes are not loaded from an external database. The kAWT Classes are linked into the ColorKVM as binaries. This speeds up the loading time e.g. for the KawtSample by factor 10.

Back to questions...

Answer 6:

In kAWT version 0.90 there is a new class ImageItem included to add an Image directly into a Panl like an other component. The following Example will show how to write a little sample application which shows an image in the "Center" of a Frame's Borderlayout.

The first step is to convert a GIF-Image to a bytearray. This is done using the ByteArrayDumper. This tool is available at the download section of the kAWT website (ByteArrayDumper.java). To convert a GIF image like javacup.gif into a bytearray use the following command:

java de.trantor.misc.ByteArrayDumper javacup.gif > javacup.java
As result you will get the following file javacup.java that looks like the following code:
  byte [] javacup= new byte [] {
	0,0,0,0,57,0,88,0,0,2, -2,-116,-113,-87,-53,-19,15,-93,-100,-76,
	86,44,83,0,93,75,120,14,-19,-4, -29,-5,49,110,66,80,-79,-121,8,-54,
	98,98,41,-31,-11,-120,-64,-128,92,-3,-103,61,-117,54,-83,-38,-75,17,10,0, 0,59};
If you place this bytearray into an application like ImageTest.java you will gain this picture after you sucessfully compiled, preverified and built a prc-file ImageTest_prc.zip from it.

Back to questions...

Answer 8:

Please look at the Documentation Section, where you can find a description how to install kAWT and compile the KawtDemo application.

Back to questions...

Answer 9:

No, there is neither a routine for displaying the keyboard nor to display the numeric dialog from a KVM/kAWT application.

Answer 11:

The variable de.kawt.impl.kjava.ToolkitImpl.spotlet gives you access to the kAWT spotlet. There, you can call beamSend() directly. For beamReceive(), please register a class implementing de.kawt.impl.kjava.BeamListener using the setBeamListener() method.