title: Java Swing - JFrame, change and show different content
body: <p>I'm trying to do a GUI Menu with three buttons. When I click on one button I want it to take me to another part of the menu. This means writing new content to my existing JFrame Content Pane. How do I do this properly?</p>
  
  <p>Every time I try this the button gets stuck and it does not take me anywhere.
  Instead It should take me to the next menu I have created.</p>
  
  <p>I have tried removing all content in the Pane and then adding new.</p>
  
  <p>I have put the JFrames content pane in a separate class that handles writing content to it.
  Could this be a problem?</p>
  
  <p>Solved:</p>
  
  <p>All I had to do was to repaint and validate the content pane.
  Thanks for all the help.</p>
  
  <p>BR,
  YAU</p>