Hi all. Iv made an personal organiser application in netbeans and Id like to password it for extra marks. Iv been using my textbook and written the following code, which compiles fine, but i dont know how to use it. What id like it to do is ask for a username and password when the program is first run, it dosent really matter if it isnt the right password as long as it looks like it works! Heres the code iv done so far. If anyone could help id be really greatful!
What you could do is to have a little dialog that is shown when the application starts up, before the main GUI is created. In it you'd have two fields, username and password (or just password if that's sufficient for your purposes), and a "Login" button. Once the button is pressed, the password is checked, and if it's OK, the application continues to start up. If it's not OK, the dialog remains in place, and the main GUI isn't shown; or the application quits altogether.
Ping & DNS - updated with new look and Ping home screen widget
Originally posted by Howard owen: Hi, im sorry im still at a loss. The code i made was from my java cookbook, its all there and it builds and compiles fine, i just cant get it to pop up. Please can someone help!!