I am developing a project (with javafx and scenebuilder) where I have to save the information of a stage in the database. The problem that appears to me is that the scene builder when I try to put the method that I made in the class does not lets put it on the button as if I did not detect it. Could you help me solve this problem?
@FXML
private void enviar(ActionEvent event){
CRUDProveedor puente= new CRUDProveedor();
int id_ped_prov= Integer.parseInt(id_ped_proveedor.getText());
int id_proveedor=Integer.parseInt(id_prov.getText());
String nombre_proveedor=nom_prov.getText();
int telefono_provedor=Integer.parseInt(telefono_prov.getText());
int direccion_proveedor=Integer.parseInt(direccion_prov.getText());
int web_proveedor=Integer.parseInt(web_prov.getText());
int email_proveedor=Integer.parseInt(email_prov.getText());
puente.insertar(id_proveedor, id_ped_prov, id_ped_prov, nombre_proveedor, telefono_provedor, direccion_proveedor, nombre_proveedor, nombre_proveedor, nombre_proveedor);
}