adding password to an app.
im somewhat new to programming in java. im in the process of making a simple app with friends/familys birthdates and dates of holidays. how would i set it up to ask for a password when entering the app and closing the app if the password is wrong?
well, you could show a JFrame with a JPasswordField at the beginning.
Then you check what the user has entered. In case its wrong, you can simply make a system.exit(0), in case its correct, you can show the main frame.
The password string itself you can either hard code into your app (which is easy - but usually not such a great idea) or you can use encryption and store your password in an external file.
regards
BugBunny