Java JDBC Tutorial – Part 12.10: Connect Java Swing GUI to a MySQL Database

In this video we will learn how to connect a Java GUI to a MySQL database. We will add support to check a userโ€™s password during login.

Note: All initial passwords are set to: java <--(all lower-case) Please SUBSCRIBE to my YouTube channel.

Download Java Source Code

Did you like my blog post?

Signup now and receive an email when I publish new luv2code content.

I agree to have my personal information transfered to AWeber ( more information )

I will never give away, trade or sell your email address. You can unsubscribe at any time.

14 Comments

  1. Comments  Rajesh   |  Saturday, 31 January 2015 at 10:04 am

    I like your videos and I am from India.Will you help in programming if required.

  2. Comments  Kam   |  Sunday, 24 May 2015 at 10:04 am

    Thank you very much for these Videos. they are very useful for Java programing using the mysal database. Also thanks again. Greeting from palestine

  3. Comments  Chad Darby   |  Saturday, 13 June 2015 at 1:47 pm

    Hi Kam, Thanks so much for watching the videos ๐Ÿ™‚

  4. Comments  Joe   |  Wednesday, 15 July 2015 at 2:09 pm

    Hi Chad,

    Excellent course! Your tutorials are simple and explanation is to the point.
    I am a newbie to Java and I could understand your JDBC course easily and have learnt a great deal from it . Great Job!
    I have a question though how can we implement a master detail Swing GUI using the DAO.
    Any help would be much appreciated.
    Thanks & take care

  5. Comments  Chad Darby   |  Wednesday, 15 July 2015 at 3:29 pm

    Hi Joe,

    Thanks for watching the JDBC videos. I’m glad you found them useful.

    For the master-details with Swing and DAO … continue to watch the videos 12.1 through 12.10 (http://bit.ly/1LZANiA). In those videos, we create a master-detail Swing application using the DAO.

    Let me know if you have any questions. I’m here to help. ๐Ÿ™‚

    BTW: Join my mailing list if you’re not on it yet. It has Java tips and tricks along with my exclusive content. http://www.luv2code.com/joinlist

    Cheers!

  6. Comments  shahed   |  Sunday, 26 July 2015 at 1:32 am

    First of all so much thanks to make such tutorial. I really appreciate that. My question is for this lecture I exactly created a project same as you but in (import org.jasypt.util.password.StrongPasswordEncryptor ) It says The import org.jasypt cannot be resolved although I have same jasypt in lib which you provided.
    Hopefully hear from you soon.
    Again THANKS a lot…

  7. Comments  Chad Darby   |  Sunday, 26 July 2015 at 10:52 am

    Hi Shahed,

    Thanks for the note. Even though the JAR file is in the “lib” directory, you still need to perform an additional configuration in Eclipse. Take a look at my other video, it shows how to configure JAR files in Eclipse: https://www.youtube.com/watch?v=3aYYrzl3xzk

    Let me know if this resolves the issue for you. Cheers!

  8. Comments  Dietmar Mutz   |  Thursday, 22 October 2015 at 1:21 am

    Hi Chad,
    you are a really good teacher. I’ve started watching your first JDBC video 8 hours ago, it was late in the evening here in Germany. But I could not stop watching them all in one go, to the very end! Now it’s early in the morning, but I’m not tired at all.
    Your explanations were very helpful, and the examples well structured.

    GREAT JOB!

    I’m sure they’ll help me developing my project ideas – and I’ll come back soon!

    Thanks a lot!

    Dietmar

    One question: What would you recommend as the best way to create interactive websites?

  9. Comments  Chad Darby   |  Sunday, 01 November 2015 at 12:44 pm

    Hi Dietmar,

    Wow! Thanks a bunch for watching the videos. Looks like you went on a JDBC video marathon … that is REALLY cool ๐Ÿ™‚

    In regards to creating an interactive website, it depends on the type of site. But if you are building a standard ecommerce app or business app, the JavaServer Faces (JSF) is a really popular Java technology for building websites that connect to a database.

    I created a free course on how to get started with JSF. You can view it here: http://www.luv2code.com/javaserver-faces-jsf/

    Anyways, let me know if you need anything else.

  10. Comments  Dnyaneshwar Shetkar   |  Saturday, 27 February 2016 at 5:12 am

    Dear chad,

    Thanks you for this videos. This videos found to be very easy. and i learn everything from it.

    Tanks bro……!!!!!!!!!!!

  11. Comments  Chad Darby   |  Saturday, 27 February 2016 at 9:20 am

    you are welcome ๐Ÿ™‚

  12. Comments  Douglas   |  Monday, 15 August 2016 at 10:57 am

    Thank you so much for shaing knowledge. I’ve learnt so easily than i do in class.

  13. Comments  Amulike Kennedy   |  Saturday, 30 December 2017 at 3:28 pm

    Thank you so much sir for sharing this knowledge. I have learnt a lot about JDBC. I love your organization and simplicity. God Bless

  14. Comments  Chad Darby   |  Thursday, 04 January 2018 at 10:51 am

    awesome Amulike! I’m happy you enjoyed the JDBC tutorials. Thanks so much for the kind words ๐Ÿ™‚

Leave a Reply