Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int accesslogin = collator.compare(loginfield, UserLogin);
- if (accesslogin < 0){
- System.out.println("Введены неверные данные");
- } else {authaccess = authaccess + 1;}
- int accesspass = collator.compare(passfield, UserPass);
- if (accesspass < 0){
- System.out.println("Введены неверные данные");
- } else {authaccess = authaccess + 1;}
- doauth.setOnAction(event -> {
- System.out.println("Нажата кнопка Войти");
- System.out.println("Ждемс.....");
- if (authaccess == 2) {
- System.out.println("Логин и пароль верны");
- } else {
- System.out.println("Неверный логин и пароль");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement