Hey, ruX is here.

J2ME: Touch screen in WTK emulator

If you use WTK 3.0 or higher touch screen support already enabled.

To enable pointer in emulator in WTK 2.5.x you should edit properties file, which located at WTK_HOME/wtklib/devices/PHONE_MODEL/PHONE_MODEL.properties and edit line with "touch_screen=false" in "touch_screen=true".

For example in my case(i use WTK distributed with Netbeans 6.8) for DefaultColorPhone need to change file which located at /opt/netbeans-6.8/mobility8/
                WTK2.5.2/wtklib/devices/DefaultColorPhone/DefaultColorPhone.properties

After this trick you can debug your application on computer - overloaded methods in Canvas like pointerPressed, pointerDragged, pointerReleased now will be work.

It's my first post in
this blog in english
:-)

Exit mobile version