tags:

views:

37

answers:

2

I want to write a JavaFX program with Database Connection(MYSQL). I did not know how to create a connection in program. And the methods I found on internet is not working for me. (Possibly because of the version difference or something.) Can anyone give the procedure to establish a connection and run a query from the program for the latest version of JavaFX?!

Thanks.

Naren

A: 

User interfaces should not be connecting directly to a database.

Put a servlet in-between to act as an intermediary. Let it do security, validation, binding, and such, too.

You're finding it hard because you shouldn't.

duffymo
Thank You. I have solved it using the way you said!
Naren
So accept the answer and vote it up.
duffymo
A: 

You can see my post in javamexico.org, where I talk about connecting mysql with java and javafx. it´s written in spanish but just look at the code. http://javamexico.org/foros/java_enterprise/tratamiento_de_imagenes#comment-3738

rsa
Thank You. I have solved it using the way duffymo said!
Naren