J2ME 触控事件 菜鸟问题(在线等)

来源:百度知道 编辑:UC知道 时间:2024/06/16 23:40:58
低级API中用pointerPressed()我知道了,但是在高级API如何响应触控事件呢??

高级API中,位于:
java.lang.Object
javax.microedition.lcdui.Item
javax.microedition.lcdui.CustomItem
原型:
protected void pointerPressed(int x, int y)
说明:
Called by the system when a pointer down action (for example, a pen tap) has occurred within the item.