I'm new to programming,now I'm writing Java Swing 开发者_如何学编程application. One of the main tasks is to provide user's authorization (admin, unregistered/registered user). I don't now the best way to realize it. Please give me advice. Thanks.
Steps can be...
- Make a database that contains username/password. [You may also have other system to store username/password instead of database based on your need.]
- Create a login frame that asks for username/password.
- On click of Login button check entered username/password with that in database.
- If correct username/password then show next frame or show error.
精彩评论