...i'am quite confuse about event-driven programming in java applet...

....i have been using a "TextField" for creating an applet that would require a password ...

...my goal is to make an error_message saying "SystemBlocked" whenever I entered 3 wrong passwords and would terminate the applet at the same time...

...how shall i do this??..

..could anyone please help me...

you can declare a variable such as:

int count = 3;

and then use a for loop to check if user enters incorrect password 3 times.

...will it also work in buttons..??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.