2 JPanels, one partly see-through
I want to display a (complicated) background and to display things moving on that background. I thought I could do this by adding one JPanel displaying the background and then adding another JPanel on top of it with the moving bits. I tested this in the following way:
I added the JPanel with the background to a JFrame (center with the borderLayout) and then added another empty JPanel on top of it (by also adding it to the center). However the second JPanel turned out to be opaque, so it simplied showed the empty JPanel on top. My question is, is it possible to make sure that when there is no Color added in some places of the second JPanel that then the bottom JPanel is shown?