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




Java Make SignIn And SignUp Form With MySQL DataBase The Design Part – https://youtu.be/XAowXcmQ-kA source code: …

Original source


26 responses to “JAVA – How To Create Login And Register Form With MySQL DataBase In Java Netbeans”

  1. i keep getting this error when i click the register just like you did on 15:35

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

    at RegisterForm.jButton_Register_ActionPerformed(RegisterForm.java:347)

    at RegisterForm.access$300(RegisterForm.java:23)

    at RegisterForm$4.actionPerformed(RegisterForm.java:177)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)

    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)

    at java.awt.Component.processMouseEvent(Component.java:6539)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)

    at java.awt.Component.processEvent(Component.java:6304)

    at java.awt.Container.processEvent(Container.java:2239)

    at java.awt.Component.dispatchEventImpl(Component.java:4889)

    at java.awt.Container.dispatchEventImpl(Container.java:2297)

    at java.awt.Component.dispatchEvent(Component.java:4711)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)

    at java.awt.Container.dispatchEventImpl(Container.java:2283)

    at java.awt.Window.dispatchEventImpl(Window.java:2746)

    at java.awt.Component.dispatchEvent(Component.java:4711)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)

    at java.awt.EventQueue.access$500(EventQueue.java:97)

    at java.awt.EventQueue$3.run(EventQueue.java:709)

    at java.awt.EventQueue$3.run(EventQueue.java:703)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)

    at java.awt.EventQueue$4.run(EventQueue.java:733)

    at java.awt.EventQueue$4.run(EventQueue.java:731)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

  2. 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?

  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 ??

  4. 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.

  5. Whenever i press the button register on registration form i get these error
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at java.util.Calendar.setTime(Calendar.java:1770)
    at java.text.SimpleDateFormat.format(SimpleDateFormat.java:943)
    at java.text.SimpleDateFormat.format(SimpleDateFormat.java:936)
    at java.text.DateFormat.format(DateFormat.java:345)
    *at elitegamers.RegisterForm.jButton_Register_ActionPerformed(RegisterForm.java:337)
    *at elitegamers.RegisterForm.access$500(RegisterForm.java:19)
    *at elitegamers.RegisterForm$6.actionPerformed(RegisterForm.java:186)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
    at java.awt.Component.processMouseEvent(Component.java:6533)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
    at java.awt.Component.processEvent(Component.java:6298)
    at java.awt.Container.processEvent(Container.java:2236)
    at java.awt.Component.dispatchEventImpl(Component.java:4889)
    at java.awt.Container.dispatchEventImpl(Container.java:2294)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
    at java.awt.Container.dispatchEventImpl(Container.java:2280)
    at java.awt.Window.dispatchEventImpl(Window.java:2746)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
    at java.awt.EventQueue$4.run(EventQueue.java:731)
    at java.awt.EventQueue$4.run(EventQueue.java:729)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

  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.

  7. 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.

Leave a Reply