 <p>check out how CardLayout works</p> <p><a href="https://docs.oracle.com/javase/tutorial/uiswing/layout/card.html" rel="nofollow">https://docs.oracle.com/javase/tutorial/uiswing/layout/card.html</a></p> <p>if you only want to switch between the windows:</p> <ol> <li>Add jPanel to your jFrame which will contain all jPanels you want to switch between (let's call it jPanelMain)</li> <li>Set CardLayout in jPanelMain</li> <li>Create jPanels you want to switch between with the stuff you need there</li> <li><p>Add Action Listener to the radio button, example</p> <pre><code>private void jButtonActionPerformed(java.awt.event.ActionEvent e) { jPanelMain.removeAll(); jPanelMain.repaint(); jPanelMain.revalidate(); jPanelMain.add(jPanel1); jPanelMain.repaint(); jPanelMain.revalidate(); } </code></pre></li> </ol>