title: JInternalFrame and JDesktopPane
body: <p>I have <code>master employee</code> form and I want to show em on my <code>main form</code>. That <code>main form</code> is MDI container, so I just want to know how to show the <code>master employee</code> form.</p>
  <p>Here is the<code>JDesktopPane</code> creating object code:</p>
  <pre><code>public class MainForm extends javax.swing.JFrame {
  
  JDesktopPane desk = new JDesktopPane();
  LoginForm login = new LoginForm();
  /** Creates new form MainForm */
  public MainForm() {
      initComponents();
  }
  </code></pre>
  <p>And here is to call <code>masteremployee form</code> though it's not working.</p>
  <pre><code>  MasterEmployee me = new MasterEmployee();       
      desk.add(me);
      me.setVisible(true);
  </code></pre>
  <p>How do I resolve this ?
  I want to make the <code>master employee</code> form shows on Jdesktoppane</p>
  <h2>Update:</h2>
  <p>It is working now. I used the <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/internalframe.html" rel="nofollow noreferrer">following</a> reference.</p>