How to draw a panel background before its components
<p>I'd like to use my Graphics2D object to draw some lines and rectangles on the background of my JFrame's ContentPane, but super.paint(g) completely repaints the panel afterwards, and putting the drawing code after it just puts it on top of the existing components.</p>

<p>How can I draw the panel then my custom drawing code then the components?</p>
