I'm trying to create an application in Java and I'm not sure about how to go about creating a screen that will then load another screen, for example a menu screen that when you click a button will load another screen and stop loading the menu screen. What would be the professional way of doing this?
I had the idea of creating different JFrame windows and then using jfrm.dispose() and new jfrm.setVisible(true), however when doing this there is a split second where there is nothing loaded at all and it doesn't look like a professional app, also I've read that using multiple frames is bad.
I could use different panels and load them when required onto the same frame. Or is there another more efficient way?
 
     
     
    