title: How to scale JPanel to fit JFrame
body: <p>Currently, I have a full screen JFrame.  Within that JFrame, is a panel called MainPanel which is 1280 by 640, a portion of the full screen game.  The MainPanel is where my game is rendered to.  Is there any way to scale this MainPanel to fit JFrame without having to adjust all the component sizes of sprites and such?  I'm thinking of rendering MainPanel to an image and drawing it over JFrame, but I do not know how to go about this.</p>
  
  <p>Thanks. </p>