JavaFX Login and Signup Form with Database Connection
ฝัง
- เผยแพร่เมื่อ 5 ส.ค. 2024
- We will create a JavaFX login/signup GUI and connect it to a MySQL database using a JDBC driver. Specifically, we will have a JavaFX login and signup form. We will also learn to pass data between JavaFX controllers and to connect a JavaFX application to a MySQL database. Specifically, we will be using JavaFX scene builder and MySQL workbench.
How to set up Database Connection in MySQL:
• Java JDBC - Connect to...
Download JDBC Driver:
dev.mysql.com/downloads/conne...
💻 My Software 💻
My Chrome Extension WittCepter - chromewebstore.google.com/det...
📚 My Courses 📚
courses.wittcode.com
👩💻 Download Code 👨💻
blog.wittcode.com
⌛ Timestamps ⌛
0:00 - Summarize Project
1:57 - Creating Project in IntelliJ
4:16 - Setting up Database Connection to MySQL
8:08 - Start Styling
30:57 - Start Coding
Extremely helpful video, especially for beginners like me. Thank you!
Your mode of teaching really great. Kudos.
awesome tutorial, helped me a lot with figuring out changing the scene between logins/registration for the apps! Thank you!
You can as well view this is it suits your needs th-cam.com/video/QsTOAXAtdrM/w-d-xo.html
Awesome video Wittcode! Glad you explain everything!
Thank you man, you helped me a lot with my project!
My favourite channel ! you one of the best !
THANK YOU SO MUCH BRO! IT HELPED ME A LOT
Easy to follow! Thanks!
best video for javafx and mysql connection
Nice video, thank you
bro this a very fine tutorial, it's awesome
I loved the explanation I mention. But I would like you to implement a purchasing system, as I would in java
Great tutorial!
Thanks a lot, just completed coding and it works perfectly.
please share the code
Never quit doing these videos man, you help me a lot!!!
Thanks so much that's great to hear! I'm certainly going to be making more of these 😁
Check also this if it can help you can as well share link th-cam.com/video/QsTOAXAtdrM/w-d-xo.html
Really helpful video ty!
nice explanation. thank you.😍
Dude you are the best i watch multiple tutorials before you and not only it didn't work but i also didn't understand the concept like i do now , you have the best explanations ever !! keep going
totally agree
THANK YOU!!!!
great work
nice tutorial, i think you could add a patron mvc or mvp for more order.
thanks a lot man! amazing video 👍
Thanks for watching Hilman! Glad you found it helpful! 🙂
You are the best, thx mate!
Check also this if it can help out, th-cam.com/video/QsTOAXAtdrM/w-d-xo.html
Thx for the tutorial sir
Of course Razzan! Great profile picture by the way haha
I have Java 16 (16.0.1). Would that cause any problems or is it fine to just go with?
thanks bro! Do you use MVC design pattern for code? plz answer
The function signUpUser
Am in to create parameters there?
It is a great video. Do you have this code available on git? It doesn't seems to be available on blog link provided in descriptions.
Amazing Video ... Nice Explanation ... can you share code please???
Can I use Laragon to build Database Table??
cause I was using that software to learn.
hello my friend, i want to download the code, unfortunately it is not available anymore on your blog... any chance i can get it now?
Hi bro just let me how do I set my main window after login instead of this logout_button
I have a main window named view.fxml and I want to open this scene after login
Hey, how do you make validation for password? e.g. when we signup i wanna make the user have to retype their password ? and also how to make the show password ? great video btw learn a lot.
I am a bit confused here, what IDE did you use? Eclipse or IntelliJ?
intelliJ, you can see the icon in the top left
Thanks Brother ,its gonna help me a lot In sha Allah ,
its really clear concept
its figure out how to use sql work brench , connector, and database connection ,
its like a bomb package in one
love from Bangladesh
Can you do this using design patterns such as dao?
How to sql stock run java
mysqldump java user login
code is not available in the provided link
🍻
You have not uploaded project in your github
Hello man, i have a question here,. So I cant connect my DButils class to mySQL when I type Connection it says "cannot resolve symbol 'connection'". i already add my JAR. If you know what went wrong please help me. Thank you so much
Try importing java.sql.* . It still might underline it and give you an error tho. But when you click on the error, it will give you a solution. If not, check to see if have the library in external libraries and add it if you don't already have it
How can we store the details of the logged in user, and use those in future fxmls?
Hey Marteh! If you want to store details of the logged in user I would make a User class that has the properties you want to store, make them fill out that information in the sign up form, create the user, and then store those properties inside MySQL workbench or whatever database you are using! Lmk if this helps 😁
Its amazing!!!
Will you please rewrite the above codes in eclipse IDE??
I faced many problems i can't handle them,
Thanks
Hey Goulen thanks so much! And I am not too familiar with Eclipse but Im sure the main differences are getting the database connection set up and the scene builder. I might remake this for eclipse some day but I would recommend looking up online "set up jdbc with eclipse" and "install scene builder on eclipse". From there you can just follow along with this video! Hope this helps! 😀
Hey is there any chance you could post the source code for this? I've followed through the entire code but the login screen is having issues. Every time I try to log in an existing user it says user not found, and if I try logging in a non existent user I get no response. Thanks
I got the exact same problem..
I think by donating you can get access 🤷♀️
why when i type connection command error pls
Is JavaFX still used today? thanks
Nice Tutorial
Can I get the gitrepo link to this project please?
I'm getting java.lang.reflect.InvocationTargetException error pls help
46:10........ Cant resolve symbol Connection, PreparedStatement , and ResultSet.........how do i deal with this please help
Me too
If you get the solution
Write here please
now i am having the same problem, put the jdbc like video . still cant resolve.
hello i Don't find the code source
Can please provide us with the code source
Hello Thank you so much for the video. I am facing the following issues while clicking signup option on the sample.fxml page.
java.lang.ClassCastException: class sample.SignUpController cannot be cast to class sample.LoggedInController (sample.SignUpController and sample.LoggedInController are in unnamed module of loader 'app')
java.lang.IllegalStateException: Location is not set error after inputing right username/password and clicking the Login Button.
Any help would be Appreciated.
Hey Sarvesh! Are you creating an object from one of those controller classes and trying to cast it to the other?
Could you please let me know what changes should i perform to make it working?
anyone have the code? so i can just download it?
I cant see the code
I love smoking crack and coding thanks for this video
where is source code ?
where's the code?
can u share the code please sir?
source code?
33:45
16:30
47:38
😀
Can you send me this project source code ?
you're from ohaio ?
Share the code
it nearly works now
code taak naa
@wittcode share the code
@@bluechild2173 ??
44:42