JAVA - How To Create Login And Register Form With MySQL DataBase In Java Netbeans

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024
  • Java Make SignIn And SignUp Form With MySQL DataBase
    ▶ The Design Part - • JAVA - How To Design L...
    ▶ Source Code: 1bestcsharp.se...
    ▶ Download All My Java Projects Source Code: bit.ly/JavaProj...
    ----------------- Check out my Java Projects! -------------------
    ▶ Inventory Management System - bit.ly/Java_Inv...
    ▶ Java Project For Beginners - • Java Project For Begin...
    ▶ Students Information System - bit.ly/Students...
    ▶ Contacts Management System - bit.ly/Contact_...
    ▶ Hotel Management System - bit.ly/JavaHote...
    ▶ Real Estate Management System - bit.ly/Java__R...
    ▶ Library Management System - bit.ly/Java_Li...
    ▶ Car Rental Management System - bit.ly/3SaTl43
    ▶ Employee Management System - • Java Project - Employe...
    ▶ Expense and Income Tracker Project - • Java Project Tutorial ...
    ▶ All My Programming Projects Here - bit.ly/2HrU8hK
    ▶ My Source Code Store Here - bit.ly/2OsC0TU
    if you want to support our work, consider supporting the channel with a coffee!
    ➜ 1bestcsharp.se...
    ----------------------- Projects Source Code Bundles -----------------------
    Java Projects Bundle - bit.ly/JavaProj...
    ------------------------- JAVA COURSE ----------------------------
    ▶ master Java core development step-by-step - bit.ly/2HXSuAn
    --------------------------------------------------------------------
    visit our blog 1bestcsharp.bl...
    CONNECT WITH ME ONLINE / 1bestcsharpblog
    subscribe: goo.gl/nRjPKk
    programming projects with source code:
    1bestcsharp.blo...
    C# And Java Programming Books
    1bestcsharp.blo...
    ********************************************************************
    in a previous java tutorial we did a login and register form design ( video link: • JAVA - How To Design L... ),
    and in this one will see how to connect the login and signup form with a mysql database
    to do that you need to download mysql connector, watch tutorial from here: • Java - How To Connect ...
    and add it to your project
    we will ceate a class (MyConnection) to connect our login and register forms with mysql database
    in the register form wi will create a function (checkUsername) to check if the username you want to register is already exists in the database table
    what we will check when the user click on the register button:
    if the username jtextfield is empty
    if the password jtextfield is empty
    if the retype_password text is equal to the password text
    if the username already exists in the database using the "checkUsername" function
    if the jdatechooser is empty
    in the login fom it's simple;
    the user enter his login and password and click on the login button,
    and all we have to do is to check if a user with this username and password already exists on the database
    other videos:
    Create Login Form In Java With MySQL Database Part 1
    • Java - How To Create L...
    Java And MySQL - Populate JTable Depending On a JCombobox Value In Java
    • Java And MySQL - Popul...
    Connect Java To MySQL Database
    • Java - How To Connect ...
    Bind a JCombobox With Mysql Database Values
    • JAVA - How To Bind a J...
    Search Values From MySQL Database And Set It Into JTextfield
    • JAVA - How To Search V...
    bind jtable from mysql database in netbeans
    • java & mysql - how to ...
    Bind JTable From MySQL DataBase Using ArrayList
    • How To Bind JTable Fro...
    Populate JCombobox Depending On Another JCombobox
    • Java And MySQL - Popu...
    Populate JCombobox From MySQL With Key And Value
    • Java & MySQL - How To ...
    How To Use Stored Procedure In Java And MySQL
    • Java And MySQL - How T...
    Insert Update Delete Data In Database
    • JAVA & MySQL - How To ...
    How To Bind a HashMap From DataBase In Java
    • JAVA & MySQL - How To ...
    display Image From database To jtable
    • Java And MySQL - How T...
    share this video: • JAVA - How To Create L...

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

  • @1BestCsharpblog
    @1BestCsharpblog  4 ปีที่แล้ว +6

    Java Login and Register Form - th-cam.com/video/3vauM7axnRs/w-d-xo.html
    Java Menu Design - th-cam.com/video/6Cm31H_zmvM/w-d-xo.html
    Java Dashboard Design - th-cam.com/video/dC66Nt_76kA/w-d-xo.html

  • @user-of9um8eq7j
    @user-of9um8eq7j 2 ปีที่แล้ว +5

    You saved my life today. My lecturer didn't teach us this at all but put it on a POE for us to complete. It's my first year and l have to say your videos really helped me out

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

      Dudee lol did this method work for you when you tried it???

  • @hickimse3421
    @hickimse3421 5 ปีที่แล้ว +11

    Some heroes don't wear capes, you are one of them buddy!

  • @rupertacuesta
    @rupertacuesta 6 ปีที่แล้ว +10

    You didnt explain how to make an mysql database, looking at how to make a design for the login and register is good. But why would you make that tutorial without showing how to store the data? Genuinely dont understand that.

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

    please show the making of database part in detail..otherwise it has no use !!!!!!!!!!!

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

    Gros merci de la part de La France mon ami.

  • @dzemilpazar
    @dzemilpazar 5 ปีที่แล้ว +3

    PreparedStatement ps; variable when use it in ps = MyConnection.getConnection().preparedStatement(query); i get CreateClass MyConnection... does this class exist but im not inport it or i just missundestand something from this video 12:19 ??

  • @abdelkarimlyoussi3607
    @abdelkarimlyoussi3607 2 หลายเดือนก่อน +1

    Thanks Bro for your video.

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

    thanks a lot! very helpful
    literally saved me

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

    Is there any way to use this program on a different computer in terms of the database because as far as I know this is a local method and I really cant figure out how to do it to where no matter i bring the program it will work so please tell me what I need to do for this

  • @nikhilkhariya8247
    @nikhilkhariya8247 6 ปีที่แล้ว +6

    i m having an error in my Prepared statement line, in get connection()

  • @bhanukavithanage4911
    @bhanukavithanage4911 4 ปีที่แล้ว +3

    This was a very helpful video thank you very much for sharing stuff like these you're a life saver

  • @raman6271
    @raman6271 5 ปีที่แล้ว +3

    Great man 👍👍👍👍

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

    Bro, Nice Code you have here.... it has helped me Alot. Thanks

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

    During final step user and pass..error sqlEx index out of range(1> WHOSE IS 0)
    Why this error.. Can u suggest and correct me

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

    Hi sir
    Send the program using java or html

  • @asiyakhan9384
    @asiyakhan9384 6 ปีที่แล้ว +10

    Hey man! your videos are amazingly helpful, but it would be much more better if you explain what you are doing rather than silence... :/

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

    thank you much bro... you saved my ass..!

  • @fathonynur8528
    @fathonynur8528 6 ปีที่แล้ว +6

    sir i have some problem to connect my db like
    "com.mysql.jdbc.Driver
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException"
    can you help me?

  • @clairjacob8908
    @clairjacob8908 5 ปีที่แล้ว +3

    would be more helpful if you explain everything

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

    Hi, this works but the only problem is that I can login to an account even if the casing of the letters are different. For example i can login if username is "ADMIN" but on database it is "admin". What am i doing wrong?

  • @PankajThakur-if2gp
    @PankajThakur-if2gp 5 ปีที่แล้ว +1

    thanks, great work, it helped me a lot,keep it up

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

    Thnx budy.....helped me a lot....

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

      please help me in how to create mysql database , ....to complete this project ,.. because i got a error on this

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

    Hello my IDE gives an error during runtime "Unsupported major.minor version 52.0" please advice

  • @ElifArslan-l9g
    @ElifArslan-l9g 2 ปีที่แล้ว +1

    thank you so much

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

    Thank u so much brother
    By-Durgesh

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

    How do you transition from the login window to the register window after clicking the create new account button?

  • @sarveshmore4756
    @sarveshmore4756 6 ปีที่แล้ว +3

    So my if and else statement aren't working in loginform and no matter what i enter in login it does incorrect username and password

  • @0xNETCAT
    @0xNETCAT 5 ปีที่แล้ว +1

    dont forget to make the form draggable..
    code in netbeans:
    assuming you are in the source code of the Jform.
    int pX, pY;
    //global vars
    //make the upper (orange) panel event mouse pressed.
    private void jPanel1MousePressed(java.awt.event.MouseEvent evt) {
    // Get x,y and store them
    pX = evt.getX();
    pY = evt.getY();
    }
    //make the upper panel event mouse dragged.
    private void jPanel1MouseDragged(java.awt.event.MouseEvent evt) {
    this.setLocation(this.getLocation().x + evt.getX() - pX,
    this.getLocation().y + evt.getY() - pY);
    }
    now you can move your window :)

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

    Thanks a lot... You really helped a lot

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

    So GOODDDDDDDDDDDDDDDDDDDDDDDDDDDD also your page is good too !!!!

  • @danielleclere9904
    @danielleclere9904 5 ปีที่แล้ว +3

    Good video!

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

    How to create exe file if i have mysql database with xampp server? Pls help me

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

    It Worked! Thanks!

  • @chrisony9341
    @chrisony9341 5 ปีที่แล้ว

    Nice video but no sound to let us know some of the terminologies used

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

    Man you are the best

  • @Reaper-lh4yq
    @Reaper-lh4yq 3 ปีที่แล้ว +1

    You didnt explain how to make an mysql database, looking at how to make a design for the login and register is good. But why would you make that tutorial without showing how to store the data? Genuinely dont understand that. (2)

  • @SauravKumar-fe6jr
    @SauravKumar-fe6jr 5 ปีที่แล้ว

    Phpmyadmin setup par vedio banao plz

  • @ralucosma3076
    @ralucosma3076 6 ปีที่แล้ว

    Hello. I have a problem. In phpmyadmin at u_date I can't put NULL. I selected NULL button and when I go back at structure atu null column says YES , but at column Default says None. And it should be NULL as well. Can you help me fix this ? thank you.

  • @senorvc8534
    @senorvc8534 6 ปีที่แล้ว

    and my localhost/phpmyadmin doesnt get reflected at all... it is as it, no data is added to it
    please help me

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

    You are Gold. :)

    • @trailerhub4476
      @trailerhub4476 5 ปีที่แล้ว

      do you receive a download link? can you send it to me? i didn't receive a link.

    • @1BestCsharpblog
      @1BestCsharpblog  5 ปีที่แล้ว

      check your spam folder or re-donwload it

    • @trailerhub4476
      @trailerhub4476 5 ปีที่แล้ว

      @@1BestCsharpblog Thank you brother!!!

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

    Thankyou so much 👌

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

    is there someway to contact you? i really need help

  • @VinayKumar-xo7kq
    @VinayKumar-xo7kq 6 ปีที่แล้ว +1

    nice work bro

  • @زمن_جميل
    @زمن_جميل 6 ปีที่แล้ว +1

    thank you V.

  • @harrirnaima9969
    @harrirnaima9969 5 ปีที่แล้ว

    Thank you sir for this video , can you tell us how to add the "the forget password" button ??

    • @Isho242
      @Isho242 5 ปีที่แล้ว

      all write
      please help us sir

  • @euricocatumbela5789
    @euricocatumbela5789 6 ปีที่แล้ว

    I followed all your procedures but I'm having Link failure could you explain to me please

  • @girraj1093
    @girraj1093 6 ปีที่แล้ว

    How can I add any thing in jcombobox

  • @sivakumar-gm9vv
    @sivakumar-gm9vv 6 ปีที่แล้ว

    Pls help me sql execution update erorr will appear

  • @CryptoKaiwen
    @CryptoKaiwen 6 ปีที่แล้ว

    So how do you install php and sql and get that all installed and working then?

    • @xxthenotoriousvxx
      @xxthenotoriousvxx 6 ปีที่แล้ว

      You could use WAMP Pro to set almost everything up for you but this would cost about $190 for the software. I would highly recommend downloading XAMPP which does the same thing for free. It comes with an MySQL server and sets the ports for you. Once everything is downloaded and your servers are started (apache and mysql) type "localhost" or "localhost:(your port number you set in the apache configuration)" into your browser to get to the xampp homepage and phpmyadmin will be in the top right tab. Clicking on this should get you going.

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

    Thank you 😭❤️

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

    Excelente!!!

  • @kailashmodi298
    @kailashmodi298 5 ปีที่แล้ว

    What is that localhost part

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

    nice work

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

    It is good tutorial but just got lazy to edit the video to cut the wrong step.

  • @kailashmodi298
    @kailashmodi298 5 ปีที่แล้ว

    Getting error how i can contact u plz tekk

  • @77nu43
    @77nu43 6 ปีที่แล้ว

    where is the part when you make a verification of username if it is already existed there. i mean if you input a username but someone already created the same username. help me please.

  • @Black-xy4pj
    @Black-xy4pj 2 ปีที่แล้ว

    why didn't you show how to create the project folder...

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

      watch the first part - th-cam.com/video/XAowXcmQ-kA/w-d-xo.html

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

    I am facing a problem when I try to add a new user into the database it says, "Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because the return value of "MyConnection.getConnection()" is null". I've been finding the error since the last day and up until now, I can't seem to fix it.
    Can somebody help me? I am still an IT student that's why I still have difficulty with this.

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

      check if xampp is open, and start apach and mysql

    • @tipanjohnlennardb.6002
      @tipanjohnlennardb.6002 2 ปีที่แล้ว

      Me to that error i can't fix it if the xampp is open how can i solve this problem?

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

      Have you found the solution?

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

    i am getting error
    cannot find symbol
    symbol: method prepareStatement(String)
    location: class Object
    please help sir

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

    Nice Video
    #knowledgeinflow

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

    How did you set up PHPmyAdmin on the computer? I don't know how to set it up.

    • @1BestCsharpblog
      @1BestCsharpblog  4 ปีที่แล้ว

      open xampp
      start apach and mysql
      go to localhost/phpmyadmin

  • @ttb-techtravelbook
    @ttb-techtravelbook 5 ปีที่แล้ว

    good, but why there is no sound?

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

    thanks

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

    This is wow

  • @girraj1093
    @girraj1093 6 ปีที่แล้ว

    How can I add images to jlabel in java

    • @delphiamadel4984
      @delphiamadel4984 6 ปีที่แล้ว

      by clicking icon on jlabel properties

  • @1navaneet
    @1navaneet 6 ปีที่แล้ว

    make a video for home.when you make this videos.

  • @kashmir398
    @kashmir398 5 ปีที่แล้ว

    i tried this code to connect to my database. but i cant seem to get the connection.

    • @kashmir398
      @kashmir398 5 ปีที่แล้ว

      Anyone else with this problem ?
      It may be a careless mistake of my own while coding. Ive spent days looking at it and still cant get it right

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

      did you added the mysql connector jar file to your project ?

    • @kashmir398
      @kashmir398 5 ปีที่แล้ว

      @@1BestCsharpblog Yes sir I did. Downloaded and added the jar file into the library. however, it shows .jar at the end unlike yours in the video which shows -bin.jar not sure if this could be the issue but....

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

      if you can't figure out what's the problem, get the source code form the link in the description

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

      @@1BestCsharpblog Okay will do :)

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

    I have a problem in Prepared Statement please someone help me

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

      Same . I keep getting a null exception there > Did you manage to solve it ?

  • @kashmir398
    @kashmir398 5 ปีที่แล้ว

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    anyone else having this error ?

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

      Did you find the solution?? Im having the same problem :(

    • @kashmir398
      @kashmir398 5 ปีที่แล้ว

      @@hug00l check your coding part where you insert sql query. There might be an extra '?' or lesser than the text fields you want to getText from

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

      @@kashmir398 I checked mine and everything was okay . Im not sure why i still have the error

  • @sanjukoujalagi5800
    @sanjukoujalagi5800 5 ปีที่แล้ว

    no audio...only video

  • @sheharyarali4505
    @sheharyarali4505 4 ปีที่แล้ว

    no sound ..

  • @exceling3820
    @exceling3820 4 ปีที่แล้ว

    video has no sound

  • @giordanotubeo8778
    @giordanotubeo8778 5 ปีที่แล้ว

    Thanks a lot, but how to get the symbol .getDate() ??? .getDateFormat() is the only one appears!
    thanks

  • @tanvigurav928
    @tanvigurav928 4 ปีที่แล้ว

    I am getting an NullPointerException error

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

      Same. Have you managed to fix it because I need help

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

    Without audio ...seriously?

  • @tienayihabeley6549
    @tienayihabeley6549 5 ปีที่แล้ว

    no sound

  • @megetube3584
    @megetube3584 5 ปีที่แล้ว

    video kana hojjachu keessanif bayyee galatooma

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

    Are you God? :V

  • @zahralotfi9818
    @zahralotfi9818 5 ปีที่แล้ว

    No sound!!!!

  • @dispydanio8372
    @dispydanio8372 5 ปีที่แล้ว

    dat filmpje is kort

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

    ..

  • @iceman340h
    @iceman340h 5 ปีที่แล้ว

    get up with the times speak, I stopped watch 3 seconds in

  • @annakarenina9600
    @annakarenina9600 4 ปีที่แล้ว

    hi, i try to do the same coding as you but i got the com.mysql.jdbc.Driver
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException eror, please help me to solve this

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

      Hi , I got the same error too. Did you find a solution to it because I need help

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

    No audio