title: how to call jdialog from jinternalframe
body: <p>Can some one tell me how to call JDialog from a JInternalframe?</p>
  
  <pre><code>public class BSJFrameUpdateOnlineTrdDlg extends JInternalFrame {
  
  public BSJFrameUpdateOnlineTrdDlg(JDesktopPane jdesk) { //constructor
      super("Backoffice Synchronization");
       jdeskTop = jdesk;
       frame = this;
      try {
  
        jbInit();
      }
      catch (Exception e) {
        e.printStackTrace();
      }
      setLocation(400, 200);
      setVisible(true);
      setSize(720, 570);
  
    }
  private void jbInit() throws Exception {
  //.......
   jButton1.addActionListener(new jButton1_upload_action());
  this.getContentPane().add(jButton1, null);
  
  }
  
   class jButton1_upload_action implements ActionListener{
      public void actionPerformed(ActionEvent e) {
   displayDialog(frame,marketStatus);
  }}
  
   public void displayDialog(JInternalFrame frame,String status){
       JDialog jdg = new JDialog();
       //this is where the JDIalog get initiated
  
  }
  }
  </code></pre>
  
  <p>this is what I'm currently having. I have inserted only most important code lines.</p>