How to seperate logic from controller JavaFx
问题 I've got an issue with seperating business logic from controller (apart from that how i'm validating data in my program). Here is logic class: public class LogInMechanism { LogInController logInController = new LogInController(); private static int howManyAttempts=0; public void logIn() { howManyAttempts++; if(howManyAttempts <3) { if(logInController.getLogInField().getText().equals("nick") && logInController.getPasswordField().getText().equals("password")) { System.out.println("Button