title: How can I show dialog box on canvas in J2ME mobile application?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8641839/is-this-possible-to-use-lwuit-dialog-with-javax-microedition-lcdui-canvas-in-wir">Is this possible to use lwuit.Dialog with javax.microedition.lcdui.Canvas in wireless toolkit 2.5.2?</a>  </p>
  </blockquote>
  
  
  
  <p>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?</p>
  
  <p>say some example,</p>
  
  <pre><code>   public class Mycanvas extends Canvas implement ActionListener
     {
       Dialog dialog=new Dialog();
  
       }
  </code></pre>