Search code examples
javajava-melwuit

Lwuit virtual keyboard error


When I click something in the keyboard this error is coming up

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)

It is not even working in LWUITDemo.jar also....is there any solution for this or is there anyway to disable virtual keyboard in midlet


Solution

  • The issue is specific to the current version of the LWUIT designer and will be fixed in an upcoming update.

    The compilation issue you are experiencing is due to the usage of the UI project rather than using the appropriate port (e.g. the MIDP/UI project).