Login window before application startup
Hey im very new to gui's and not sure what the most appropriate way I should do something...
What im trying to get is something like a login window, that asks for username and password then checks that by connecting to a database, before activating the main application. Im not sure if what im looking for is a dialog window or 2 seperate JFrames, any suggestions?
Ive got something working with 2 different JFrames, one for login and one for the main app, but I didnt know how to implement a check to see if the login JFrame had been run first, is there a way I could do this? I could pass information between the two JFrames but couldnt get that check thing figured out. I just dont want it to be easy for someone to open the main application JFrame without it being called by the Login JFrame.
If there is a better way of doing this I would really love to know :)