Alternate Project Templates for Sun Java Wireless Toolkit Users
Updated 12/04/2007

You can use these templates as an alternative if you are using the Sun Java Wireless Toolkit instead of NetBeans.

CleanProject4WTK.zip - Clean Project Template Alternative (38.17 KB)

This next template is an alternative for the project code download in the tutorial No Commands: Delicious Graphical Menus:

BasicGameTemplate4WTK.zip - Project Code Alternative (31.49 KB)

These projects were created using Sun Java Wireless Toolkit 2.5.2.

Both project templates can be used to follow most tutorials presented in the lab except for the tutorial Input Handling : Keypress with Repeat Rate because the code is already included in the clsCanvas code.

One thing to take note of when follow the tutorials using these project templates is that the "images" folder resides in the "res" instead of the "src" folder.

Follow these steps to make the project accessible to the Wireless Toolkit application:
  1. Download and decompress the zip file you wish to use.

  2. Copy the extracted project folder to your "apps" folder. For example, on Windows this would be:

    C:\Documents and Settings\devlin\j2mewtk\2.5.2\apps

    The username and version number may differ from the ones you find in your machine.

As a reminder, both templates do nothing more than display a black screen and wait for the user to press the FIRE or 5 key to exit the MIDlet. The Basic Game Template project also displays the key code detected by the getKeyStates() method.

Good Luck!


Update 12/04/2007 
The location of the apps folder depends on the Wireless Toolkit version you are using. For instance, if you are using the Sony Ericsson SDK 2.5.0 for the Java ME Platform, you can easily figure it out by creating a new project using the ktoolbar:


Sony Ericsson 2.5.0 ktoolbar - new project



The project folder, res folder, and lib folder locations will be displayed in ktoolbar after the project has been created:


Sony Ericsson 2.5.0 ktoolbar- project location


In this example, the apps folder is at:
C:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\apps

The same technique can be used if you are using the original version of Sun Java Wireless Toolkit.

I hope this helps.