How can I show dialog box on canvas in J2ME mobile application? [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Is this possible to use lwuit.Dialog with javax.microedition.lcdui.Canvas in wireless toolkit 2.5.2? I created a canvas to write contents when I press mobile keys(for Example if I press "A" it will be written on the screen using paint function). Now I want to show a dialog or PopUp window when I press any key from mobile. Is it possible to show dialog when am using Canvas? say some example, public class Mycanvas