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

ความคิดเห็น • 91

  • @I.T.ManEKH
    @I.T.ManEKH ปีที่แล้ว +5

    Extremely helpful video, especially for beginners like me. Thank you!

  • @richardsonporda
    @richardsonporda 11 หลายเดือนก่อน

    Your mode of teaching really great. Kudos.

  • @Ruin3.14
    @Ruin3.14 2 ปีที่แล้ว +2

    awesome tutorial, helped me a lot with figuring out changing the scene between logins/registration for the apps! Thank you!

    • @angilstech
      @angilstech 2 ปีที่แล้ว

      You can as well view this is it suits your needs th-cam.com/video/QsTOAXAtdrM/w-d-xo.html

  • @freddiewittmann1494
    @freddiewittmann1494 3 ปีที่แล้ว +1

    Awesome video Wittcode! Glad you explain everything!

  • @meloiseren3156
    @meloiseren3156 ปีที่แล้ว

    Thank you man, you helped me a lot with my project!

  • @devgeethevirus7323
    @devgeethevirus7323 ปีที่แล้ว

    My favourite channel ! you one of the best !

  • @kalin5150
    @kalin5150 2 ปีที่แล้ว

    THANK YOU SO MUCH BRO! IT HELPED ME A LOT

  • @RobertJohnsonPS3711
    @RobertJohnsonPS3711 11 หลายเดือนก่อน

    Easy to follow! Thanks!

  • @unfortunately816
    @unfortunately816 2 ปีที่แล้ว

    best video for javafx and mysql connection

  • @gianfrancoterrazzano9506
    @gianfrancoterrazzano9506 2 ปีที่แล้ว

    Nice video, thank you

  • @juang.7837
    @juang.7837 2 ปีที่แล้ว

    bro this a very fine tutorial, it's awesome

  • @gualberto864
    @gualberto864 2 ปีที่แล้ว +2

    I loved the explanation I mention. But I would like you to implement a purchasing system, as I would in java

  • @silverbell6160
    @silverbell6160 3 ปีที่แล้ว

    Great tutorial!

  • @ramasubramanyam.s.6927
    @ramasubramanyam.s.6927 9 หลายเดือนก่อน

    Thanks a lot, just completed coding and it works perfectly.

  • @dorutu
    @dorutu 2 ปีที่แล้ว +10

    Never quit doing these videos man, you help me a lot!!!

    • @WittCode
      @WittCode  2 ปีที่แล้ว +2

      Thanks so much that's great to hear! I'm certainly going to be making more of these 😁

    • @angilstech
      @angilstech 2 ปีที่แล้ว

      Check also this if it can help you can as well share link th-cam.com/video/QsTOAXAtdrM/w-d-xo.html

  • @tiagollbotelho
    @tiagollbotelho ปีที่แล้ว

    Really helpful video ty!

  • @r.rashmiya3001
    @r.rashmiya3001 2 ปีที่แล้ว

    nice explanation. thank you.😍

  • @janna1285
    @janna1285 2 ปีที่แล้ว +3

    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

    • @alicer5574
      @alicer5574 2 ปีที่แล้ว

      totally agree

  • @user-ci3cw9kx1e
    @user-ci3cw9kx1e 2 หลายเดือนก่อน

    THANK YOU!!!!

  • @orangomango
    @orangomango ปีที่แล้ว

    great work

  • @victorandresdelcastillopum6821
    @victorandresdelcastillopum6821 ปีที่แล้ว

    nice tutorial, i think you could add a patron mvc or mvp for more order.

  • @yukimura58
    @yukimura58 2 ปีที่แล้ว

    thanks a lot man! amazing video 👍

    • @WittCode
      @WittCode  2 ปีที่แล้ว

      Thanks for watching Hilman! Glad you found it helpful! 🙂

  • @SmilyLord800
    @SmilyLord800 2 ปีที่แล้ว

    You are the best, thx mate!

    • @angilstech
      @angilstech 2 ปีที่แล้ว

      Check also this if it can help out, th-cam.com/video/QsTOAXAtdrM/w-d-xo.html

  • @razzanindrana1900
    @razzanindrana1900 2 ปีที่แล้ว +1

    Thx for the tutorial sir

    • @WittCode
      @WittCode  2 ปีที่แล้ว

      Of course Razzan! Great profile picture by the way haha

  • @juliaurbanska2252
    @juliaurbanska2252 2 ปีที่แล้ว

    I have Java 16 (16.0.1). Would that cause any problems or is it fine to just go with?

  • @expertgamers9713
    @expertgamers9713 ปีที่แล้ว

    thanks bro! Do you use MVC design pattern for code? plz answer

  • @nasaratech
    @nasaratech 2 ปีที่แล้ว +1

    The function signUpUser
    Am in to create parameters there?

  • @digvijaysingh2342
    @digvijaysingh2342 10 หลายเดือนก่อน +1

    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.

  • @rajnishgupta4888
    @rajnishgupta4888 2 ปีที่แล้ว +1

    Amazing Video ... Nice Explanation ... can you share code please???

  • @corneliussianturi476
    @corneliussianturi476 ปีที่แล้ว

    Can I use Laragon to build Database Table??
    cause I was using that software to learn.

  • @robertcristian1942
    @robertcristian1942 11 หลายเดือนก่อน +1

    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?

  • @infotech.topnews8680
    @infotech.topnews8680 ปีที่แล้ว

    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

  • @farisnazhirah2384
    @farisnazhirah2384 2 ปีที่แล้ว +1

    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.

  • @johnvictorlive
    @johnvictorlive ปีที่แล้ว +1

    I am a bit confused here, what IDE did you use? Eclipse or IntelliJ?

    • @riley9816
      @riley9816 ปีที่แล้ว +1

      intelliJ, you can see the icon in the top left

  • @captainsTime
    @captainsTime 2 ปีที่แล้ว

    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

  • @cartoonzer
    @cartoonzer ปีที่แล้ว

    Can you do this using design patterns such as dao?

  • @user-sn2tt8ih2i
    @user-sn2tt8ih2i 2 วันที่ผ่านมา

    How to sql stock run java
    mysqldump java user login

  • @ujjwalkumar7267
    @ujjwalkumar7267 2 ปีที่แล้ว +2

    code is not available in the provided link

  • @mihaimarinmoraru271
    @mihaimarinmoraru271 2 ปีที่แล้ว

    🍻

  • @muhammad_shah_786
    @muhammad_shah_786 2 ปีที่แล้ว +2

    You have not uploaded project in your github

  • @archieprimanda842
    @archieprimanda842 2 ปีที่แล้ว

    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

    • @fight-the-fairies7866
      @fight-the-fairies7866 2 ปีที่แล้ว +1

      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

  • @butchinator1988
    @butchinator1988 2 ปีที่แล้ว

    How can we store the details of the logged in user, and use those in future fxmls?

    • @WittCode
      @WittCode  2 ปีที่แล้ว +1

      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 😁

  • @goulenhaokip8536
    @goulenhaokip8536 3 ปีที่แล้ว

    Its amazing!!!
    Will you please rewrite the above codes in eclipse IDE??
    I faced many problems i can't handle them,
    Thanks

    • @WittCode
      @WittCode  3 ปีที่แล้ว +1

      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! 😀

  • @fmj1337
    @fmj1337 2 ปีที่แล้ว +2

    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

  • @nguyenvanlong9492
    @nguyenvanlong9492 ปีที่แล้ว +2

    why when i type connection command error pls

  • @kenjohnsiosan9707
    @kenjohnsiosan9707 2 ปีที่แล้ว +1

    Is JavaFX still used today? thanks

  • @stephensmithgletse1013
    @stephensmithgletse1013 ปีที่แล้ว

    Nice Tutorial
    Can I get the gitrepo link to this project please?

  • @abenezerassefa6066
    @abenezerassefa6066 ปีที่แล้ว

    I'm getting java.lang.reflect.InvocationTargetException error pls help

  • @kanelanecaiphus5951
    @kanelanecaiphus5951 2 ปีที่แล้ว +2

    46:10........ Cant resolve symbol Connection, PreparedStatement , and ResultSet.........how do i deal with this please help

    • @hadhami7455
      @hadhami7455 2 ปีที่แล้ว +1

      Me too
      If you get the solution
      Write here please

    • @gallondrinker5873
      @gallondrinker5873 ปีที่แล้ว +1

      now i am having the same problem, put the jdbc like video . still cant resolve.

  • @hibaaloui7307
    @hibaaloui7307 2 หลายเดือนก่อน

    hello i Don't find the code source

  • @yosriazabou6029
    @yosriazabou6029 2 ปีที่แล้ว +1

    Can please provide us with the code source

  • @thehowtocentral873
    @thehowtocentral873 2 ปีที่แล้ว

    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.

    • @WittCode
      @WittCode  2 ปีที่แล้ว +1

      Hey Sarvesh! Are you creating an object from one of those controller classes and trying to cast it to the other?

    • @thehowtocentral873
      @thehowtocentral873 2 ปีที่แล้ว

      Could you please let me know what changes should i perform to make it working?

  • @notKongi
    @notKongi 2 ปีที่แล้ว

    anyone have the code? so i can just download it?

  • @alexandrubraescu3288
    @alexandrubraescu3288 2 ปีที่แล้ว +1

    I cant see the code

  • @lazarus8011
    @lazarus8011 ปีที่แล้ว

    I love smoking crack and coding thanks for this video

  • @munna5889
    @munna5889 11 หลายเดือนก่อน +2

    where is source code ?

  • @basicgenius1421
    @basicgenius1421 2 ปีที่แล้ว +1

    where's the code?

  • @frhuda5426
    @frhuda5426 2 ปีที่แล้ว

    can u share the code please sir?

  • @djluminex2542
    @djluminex2542 ปีที่แล้ว +1

    source code?

  • @GOODBOY-vt1cf
    @GOODBOY-vt1cf 2 ปีที่แล้ว

    33:45

  • @GOODBOY-vt1cf
    @GOODBOY-vt1cf 2 ปีที่แล้ว

    16:30

  • @GOODBOY-vt1cf
    @GOODBOY-vt1cf 2 ปีที่แล้ว +1

    47:38

  • @shahindvlpr
    @shahindvlpr ปีที่แล้ว

    Can you send me this project source code ?

  • @youssefaberkane5653
    @youssefaberkane5653 ปีที่แล้ว

    you're from ohaio ?

  • @arnebuhler801
    @arnebuhler801 ปีที่แล้ว +1

    Share the code

  • @snowman8227
    @snowman8227 ปีที่แล้ว +1

    code taak naa

  • @nasaratech
    @nasaratech 2 ปีที่แล้ว +1

    @wittcode share the code

    • @nasaratech
      @nasaratech ปีที่แล้ว

      @@bluechild2173 ??

  • @GOODBOY-vt1cf
    @GOODBOY-vt1cf 2 ปีที่แล้ว

    44:42