Hi! Basically what im trying to do is to add a JPanel onto another JPanel that has painted graphics on it using the paintComponent() method. But the JPanel I am trying to add is not shown because it is covered up by the JPanel w/ Graphics on it.

How can I make it so that when I add the JPanel to the one w/ graphics it will show the JPanel in the front instead of being covered up by the Graphics?

All answers are appreciated! :)

You could setOpaque(false); on the panel that you wish to be transparent. It depends on what layout you are using and how you are adding the components.