How can I switch JPanels using CardLayout please? What am I doing wrong ?

Printable View