Javafx to database connection using JDBC: In this example we will insert
the value (user enter the value through the textfileds in .fxml file) into the
table "customer".
Required Files we need to create:
A Maven project as described in the attached zip folder.
1. create a database in Mysql as per following:
CREATE TABLE customer(
CustomerID int(11) PRIMARY KEY AUTO_INCREMENT,
Full_Name varchar(250) NOT NULL,
Password varchar(250) NOT NULL,
EMAIL varchar(250) NOT NULL
);
2. [Link] : This File will create User Interfaces (UI) for the application
3. [Link] : This file will control the user Interfaces and main
application
4. [Link] : This file represents user class
5. [Link] : This file makes a connection with the database (Using JDBC)
6 Main_Application.java : This file will start the execution of the application
See the attached zip folder : "javafx-jdbc".