title: Optimizing Java Graphics
body: <p>I have a custom UI drawn for my java application.  Right now I draw the entire UI from scratch.  I know for a fact some parts of the UI are static.  I know I could save these static parts to an image, but will this yield a improvement in performance (Since even an image must be drawn every frame)?</p>
  
  <p>Is it plausible to save a reference to the <code>Graphics2D</code> object after the UI has been drawn and assign that to the new graphics object every frame (starting from a point where all the static components are drawn)?</p>
  
  <p>Thanks in advance,
  Alan</p>