I am trying to create a Menu for a program I am doing. I want to create a window for the user to choose if he wants to Encrypt or Decrypt. When either button is pressed, another window will pop up for him to enter the encryption key. And then the program will proceed to another window where data is displayed/entered etc.
My question is what is considered best practice when "calling" different Frames? Should I make a class for each frame?
I am always trying to avoid using bad practices for efficiency and not learning and getting used to the wrong method.
Thanks for your answers :)