title: How do I set up a JFrame with a refresh rate?
body: <p>I have a 2d game which the entire structure is completely coded except the graphics. I am just updating the single component of a JFrame which is a Graphic containing 50 images. Each frame the images are in a different location hence the need for a refresh rate.</p>
  
  <p>To paint, I have overridden the paintComponent() method, so all I really need to do is repaint the component (which, again, is just a Graphic) every 40ms.</p>
  
  <p>How do you set up a JFrame with 25FPS?</p>