title: how to adjust JFrame and JInternal frames with any screen size?
body: <p>I am working on a Swing application that starts with <em>JFrame</em>, but all the other frames are included as <em>JInternalFrames</em>, and i am facing some serious screen size problems when i instaled it in different computers, i used the following methode to set the JFrame in full screen</p>
  
  <pre><code>    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
      setBounds(0, 0, screenSize.width, screenSize.height);
      JFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
  </code></pre>
  
  <p>But I observe no difference. I also want to adjust the JInternalFrames with the screen size. If you have any suggestions or solutions, please help</p>