Listening/Handling JPanel events
问题 Good evening ladies and gentlemen, I have a problem with Java Swing that I cannot solve, maybe you can help me. Here it is: I have one JFrame which uses BorderLayout, and many JPanels. Every time I need to put up a new screen (i.e. from the Main Menu, when Search button is clicked, go to the Search Menu), I simply remove the component (JPanel) which is located in the center, and put the new screen (new JPanel) in the center instead. This way, I don't call all my header and footer objects