I have a JTree, the renderer uses JLabels. If I setOpaque(false), then I get display issues with highlighting tree nodes/leafs, so I keep the rendering of the jtree opaque. I'd like to display an image for the background and have the text from the jtree elements displayed over top of it. The JTree is in a JScrollPane. I've tried using the image as the background for both the JFrame or the JPanel. (which the scrollpane is in) I am painting the background properly as far as I'm aware.
(JFrame)
public void paint(Graphics g)
{
super.paint(g);
g.drawImage(img,0,0,this);
}
Here's how it looks now.
[img]http://img.photobucket.com/albums/v204/phaelax/javabackground.jpg[/img]