Results 1 to 3 of 3
  1. #1
    tooker22 is offline Member
    Join Date
    Aug 2010
    Posts
    1
    Rep Power
    0

    Default limit login attempts

    hi how do i change this code to limit user attempts to 3?

    public void validateUser(String name, String password) {
    if (name.equals("admin") && password.equals("letmein")) {
    display.setCurrent(list1);
    } else {
    tryAgain();
    }
    }
    public void tryAgain() {
    Alert error = new Alert("Login Incorrect", "Please try again", null, AlertType.ERROR);

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. jtextfield limit?
    By devstarter in forum New To Java
    Replies: 1
    Last Post: 03-01-2010, 06:17 PM
  2. Web services packet limit?
    By poet in forum Advanced Java
    Replies: 1
    Last Post: 10-21-2009, 01:57 AM
  3. Can you Limit JSpinners??
    By ashton in forum New To Java
    Replies: 1
    Last Post: 02-09-2009, 06:10 AM
  4. Replies: 0
    Last Post: 06-25-2008, 12:41 PM
  5. Limit of String
    By javaplus in forum New To Java
    Replies: 5
    Last Post: 11-19-2007, 04:48 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •