title: How to put JFrame into FullScreen and automatically rescale content
body: <p>I want go full screen and keep everything inside in order.</p>
  
  <p>How should i put the JFrame into full screen <strong><em>AND</em></strong> rescale everything inside: images, generated drawings etc.(sth like zooming it up so the content will fit the screen).</p>
  
  <p>The problem is I am making full screen app, but I don't know on what screen it will be displayed.</p>
  
  <p>This will put the frame into fullscreen, but the content will not be rescaled</p>
  
  <pre><code>   frame.dispose();
     frame.setUndecorated(true);
     frame.setLocation(0, 0);
     frame.setSize(java.awt.Toolkit.getDefaultToolkit().getScreenSize());
     frame.setVisible(true);
     frame.repaint();
  </code></pre>