I'm trying to create simple login functionality for a Java / JavaFX project. I've assigned fx:id's 'txt_username' to the JFXTextField and 'txt_password' to the JFXPasswordField respectively. But the values that are being passed through are not the values in the input fields('admin' & 'password'):
I have no idea how any help would be appreciated.
I quickly started a new project and with a simple form without using the JFoenix components and managed to get it working.
Imports:
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXPasswordField;
import com.jfoenix.controls.JFXTextField;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import javafx.stage.Window;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;