I am gathering things for this KET test project. But one thing that really bothers me is this page navigation I can’t figure out how to make it work properly. I am trying to use CardsLayout. But it dosen’t work properly. I need help how to set up those panes.
At the bottom I need to make question numbers, for start I think I will make only 5. When number is pressed it navigates to page which is marked by that number. Next and back buttons navigate +- one page and the result button takes to final page where test is sumed up.

Look at the code give below.It is very basic program for setting and handling
CardLayoutand very much fulfill the requirement that you are looking for . I hope it would assist you better in understanding the use and handling ofCardLayout.