I created a FrameClass so every panel in my program has one frame to use. My teacher hates multiple frames.
FrameClass frame = new FrameClass();
My problem is that when I implement the code above in every JPanel classes frames pops out whenever I do action to go to the next panel. I knew that new FrameClass()
triggers the action. Is there a way similar to this that can be done to inherit FrameClass
attributes.