当我点击键盘上的某些内容时,会出现此错误
java.lang.NullPointerException
at com.sun.lwuit.VirtualKeyboard.actionCommand(+81)
at com.sun.lwuit.Form.actionCommandImpl(+81)
at com.sun.lwuit.Button.fireActionEvent(+47)
at com.sun.lwuit.Button.released(+11)
at com.sun.lwuit.Button.pointerReleased(+14)
at com.sun.lwuit.Form.pointerReleased(+186)
at com.sun.lwuit.Dialog.pointerReleased(+6)
at com.sun.lwuit.VirtualKeyboard.pointerReleased(+19)
at com.sun.lwuit.Component.pointerReleased(+10)
at com.sun.lwuit.Display.handleEvent(+151)
at com.sun.lwuit.Display.edtLoopImpl(+118)
at com.sun.lwuit.Display.invokeAndBlock(+84)
at com.sun.lwuit.Display.invokeAndBlock(+6)
at com.sun.lwuit.Form.showModal(+416)
at com.sun.lwuit.Dialog.showModal(+86)
at com.sun.lwuit.Dialog.show(+89)
at com.sun.lwuit.Dialog.showPacked(+411)
at com.sun.lwuit.VirtualKeyboard.show(+7)
at com.sun.lwuit.Dialog.showDialog(+9)
at com.sun.lwuit.VirtualKeyboard.showKeyboard(+135)
at com.sun.lwuit.Display.setShowVirtualKeyboard(+23)
at com.sun.lwuit.TextArea.pointerReleased(+25)
at com.sun.lwuit.TextField.pointerReleased(+189)
at com.sun.lwuit.Form.pointerReleased(+186)
at com.sun.lwuit.Component.pointerReleased(+10)
at com.sun.lwuit.Display.handleEvent(+151)
at com.sun.lwuit.Display.edtLoopImpl(+118)
at com.sun.lwuit.Display.mainEDTLoop(+208)
at com.sun.lwuit.RunnableWrapper.run(+245)
它甚至没有在LWUITDemo.jar中工作....是否有任何解决方案 或者无论如何在midlet中禁用虚拟键盘
答案 0 :(得分:1)
该问题特定于当前版本的LWUIT设计器,将在即将发布的更新中修复。
您遇到的编译问题是由于使用了UI项目而不是使用适当的端口(例如MIDP / UI项目)。