title: Disable JFrame when a new JFrame is opened
body: <p>I am trying to disable the "main" <code>JFrame</code> when the new frame pops up. I want it so you can not click or drag anything on that frame. I tried making the new frame a <code>JDialog</code>, but that did not disable the other frame. I also looked at the other post about this, which suggested to make it a <code>JDialog</code> but it still does not work. I really need help doing this please. thanks. This is the codeIi am using to make the <code>JDialog</code>, is their any problems with it? </p>
  
  <pre><code>editDialog=new JDialog(IntroScreen.frame);
  </code></pre>
  
  <p><code>IntroScreen.frame</code> represents the "main" frame.</p>