My program consists of 3 main "sections". The main function, login form and application form. The main function should do something like: Open the login form, wait for it to close, and then open the application form. I can’t get the expected part to work, or rather, I don’t know how I will do it.
Someone told me to use JDialog instead and use setModal(true), but with this approach, the registration form will not appear on the taskbar, which is terrible in my opinion.
Another thing that I considered is to open the application from inside Login after closing it, but this seems like a bad design, as this will make the login form without reuse.
So please, what would you suggest?
source
share