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 :)

有帮助吗?

解决方案

For a better UI design I recommend you use jdesktoppane and add JInternalFrames for the various functionalities . That way you can have the whole application in one window instead of creating and disposing jframes

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top