I am trying to make a simple quiz in java with swing. I want the user to open the application and see a screen with four button and a label, the label asking a question and the buttons each containing a possible answer. I fthe user clicks the right button, they will be advanced to a page telling them that they are right, and if they get it wrong they will be brought to a page telling them they are wrong. From the right or wrong pages they will be able to click a button to advance to the next question.
In short, I am looking to create a JFrame and be able to replace its content pane with different JPanels over and over again based on user input.