Search code examples
java-melwuitj2mepolishlwuit-form

how to create popup window when pressing numeric keys in sun java wireless toolkit 2.5.2?


I want to create popup window in sun java wireless toolkit when pressing numeric keys on Mobile. I don't know whether it is possible or do need to use some additional technologies for that?

And also I want to draw some strings on the popup window.

Please guide me to get out of this issue?

I have used alert box in j2me but I want one popup window instead of that


Solution

  • You must use a Dialog. This is a class from LWUIT which allows you to build a popup window.

    More info here:

    http://www.lwuit.com/2008/07/pimp-my-lwuit-part-ii-rounded-all-over.html

    http://lwuit.java.net/javadocs/com/sun/lwuit/Dialog.html