Jesse Miller wrote:I have created a Java Desktop Application with NetBeans 6.9 IDE. The application consists of several panels. Three of these panels have simple rectangles drawn on them with different fill colors. The other panels have a jFreeChart drawn on them. What I would like to do is to place a background image behind everything let all of the panels have transparent backgrounds so the image will show through.
To have a JPanel show through, usually you just call setOpaque(false) on the JPanel. To show a background image, the override the component's paintComponent method and draw the image there as is shown in this forum's FAQ (for a JPanel, but the technique is the same).
Can anyone take me through how to do this using the NetBeans IDE?
Not me as I don't use code-generation, and I strongly urge you, at this stage in your Swing education, to do the same.
Luck!
