title: Is this possible to use lwuit.Dialog with javax.microedition.lcdui.Canvas in wireless toolkit 2.5.2?
body: <p>I am using <code>javax.microedition.lcdui.Canvas</code> for drawing my string on the screen. But I also need one dialog window for some purpose. So I am using <code>lwuit</code> package (<code>com.sun.lwuit.Dialog</code>) for showing dialog window when key pressing.</p>
  
  <p>So in my program I just included that package and create the object of the Dialog box. While running my application, it is terminated unexpectedly.</p>
  
  <p>I just included the following lines...</p>
  
  <pre><code>import javax.microedition.lcdui.Canvas;
  import com.sun.lwuit.Dialog;
  
  public class Mycanvas extends Canvas implements CommandListener
  {
      Dialog dialog = new Dialog();
      //some other remaining codes for my canvas...
  }
  </code></pre>
  
  <p>So, is it possible to show <code>lwuit</code> dialog window with <code>lcdui</code> canvas?</p>