wolfshine-git / JavaLoginRegisterGUIDatabase

Video tutorial: https://youtu.be/fA9_KzJSrNQ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Login and Register GUI with MySQL Database Connection

LoginRegisterGUIDatabase is a Java application that provides a simple user authentication system using Swing GUI components. It allows users to log in and register for an account. The project consists of several classes that handle different aspects of the application's functionality. Checkout the full video tutorial of where I go step by step explaining the process of building it here: https://youtu.be/fA9_KzJSrNQ

Table of Contents

  1. Classes

Classes

AppLauncher

The AppLauncher class contains the main method that launches the application. It creates an instance of the LoginFormGUI class to start the login process.

Form

The Form class is a base class for the GUI forms used in the application. It sets up common properties for all GUI forms, such as title, size, layout, and background color.

LoginFormGUI

The LoginFormGUIclass handles the user interface for the login form. It allows users to enter their username and password to log in. It also provides a link to the registration form for new users.

RegisterFormGUI

The RegisterFormGUI class is responsible for the user interface of the registration form. It enables users to create a new account by entering a username, password, and re-entering the password for confirmation.

MyJDBC

The MyJDBC class provides methods for interacting with the MySQL database. It handles user registration, checking if a user exists, and validating login credentials.

CommonConstants

The CommonConstants class holds constant values used throughout the application, such as color codes for UI elements and database connection details.

Usage

To use the AppLauncher application:

  1. Ensure you have a MySQL database set up with the required schema.
  2. Update the database connection details in the CommonConstants class.
  3. Compile and run the AppLauncher class.
  4. The login form will appear, allowing users to log in with existing credentials or register for a new account.

About

Video tutorial: https://youtu.be/fA9_KzJSrNQ


Languages

Language:Java 100.0%