I have a bunch of panels, and they all share a common subpanel. To do the subpanel, I made it a static JPanel. But when I create multiple objects that share this subpanel, only the *most recently created* object shows the subpanel. In the other objects (which are also JPanels), the subpanel becomes invisible. How can I fix this?
To clarify, when I add the static JPanel to a new panel, the previous panel that I added it to no longer sees it. I want to fix this so I can use just one subpanel object referenced by all other panels.