Sorry for my ignorance, but my problem is how can I change a panel that is in my Jframe for another one that is outside of this one. I found a video on youtube ( this ) that teaches how, but when I run the code the panel does not change me, and I do not know what it could be.