Ok, I think you must do that. The right thing in LWUIT is using Dialog
.
Create a Dialog
using new
. i.e. Dialog d = new Dialog()
The next step is filling the title and body with Dialog.setTitle(String text)
or putting something inside the Dialog
‘s layout.
When your Dialog
is ready to be shown, you must call to Dialog.show()
and when you want to remove it, call to Dialog.dispose()
Take a look here
Is this possible to use lwuit.Dialog with javax.microedition.lcdui.Canvas in wireless toolkit 2.5.2?
solved How can I show dialog box on canvas in J2ME mobile application? [duplicate]