I have a LinkedList of JPanels which are shown inside a main JPanel.
How can I change these panels and refresh my main panel?
For example, if I want to use a search method and show only 3 of these JPanels and another time it show 10 JPanels, how can I do it?