If this is a Java Swing issue, then you shouldn't be creating multiple JFrames for this but rather multiple JPanels that are swapped in your JFrame via a CardLayout. Google the tutorial as it will...