I'm using several JPanels on my window. Problem is that I have one JPanel which is just for displaying the background image.
That means all other panels have to be drawn on it.
Right now I'm using "setComponentZOrder" to make sure they are on top. This works fine, but only if I use panels I know of at the beginning. If I want to add panels afterwards, it all screws up.
What I tried is increasing the ZOrder value in every step and setting the background panel one value above that. But that just screws everything up.
Anybody knows a better way to do all that?
Thank you for any help.