https://github.com/gaureshpai/java-swing-login-quiz-app
Java Swing Login-Quiz App : A user-friendly Java Swing-based login application with password visibility control and "Forgot Password?" recovery. Features secure authentication, clean styling, and an intuitive interface.
https://github.com/gaureshpai/java-swing-login-quiz-app
java
Last synced: 4 months ago
JSON representation
Java Swing Login-Quiz App : A user-friendly Java Swing-based login application with password visibility control and "Forgot Password?" recovery. Features secure authentication, clean styling, and an intuitive interface.
- Host: GitHub
- URL: https://github.com/gaureshpai/java-swing-login-quiz-app
- Owner: gaureshpai
- Created: 2024-02-01T17:54:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-10T07:49:56.000Z (over 1 year ago)
- Last Synced: 2025-04-30T12:36:48.783Z (about 1 year ago)
- Topics: java
- Language: Java
- Homepage:
- Size: 60.5 KB
- Stars: 6
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Java Swing Login Application
This is a simple Java Swing-based login application designed for user authentication.
The application provides a user interface for entering a username and password, with an option to show/hide the password.
Additionally, it includes a "Forgot Password?" feature allowing users to recover their passwords through a security question.
## Features
- **Login Form:** Users can enter their username and password to log in.
- **Show Password:** Checkbox to toggle the visibility of the entered password.
- **Forgot Password:** Users can recover their passwords by answering a security question.
- **Styling:** The application features a clean and intuitive user interface with proper styling.
## Components
- **Username and Password Fields:** Text fields for entering the username and password.
- **Show Password Checkbox:** Checkbox to show or hide the entered password.
- **Login Button:** Initiates the login process.
- **Forgot Password Button:** Allows users to recover their passwords.
- **Error Handling:** Displays error messages for invalid login attempts.
## Usage
1. Enter a valid username and password.
2. Click the "Login" button to log in.
3. Optionally, use the "Show Password" checkbox to reveal the entered password.
4. Click the "Forgot Password?" button to recover a forgotten password.
## Forgot Password
- The "Forgot Password" feature prompts the user to enter their username.
- If the username exists, a window will appear with a security question.
- Users can answer the security question to reset their password.
## Implementation Details
- The application is built using Java Swing for the graphical user interface.
- User authentication is handled through a simple array of predefined users.
- Background tasks, such as login validation, are executed using SwingWorker.
## Dependencies
- Java Development Kit (JDK) version 8 or later.
## How to Run
1. Ensure you have the Java Development Kit (JDK) installed.
2. Compile and run the `LoginApp` class.
```bash
javac LoginApp.java
java LoginApp
The application window will appear, allowing users to log in or recover their passwords.
## Developer
Gauresh G Pai