This is a Java-based Login Management System that allows users to perform CRUD (Create, Read, Update, Delete) operations on user data. The application uses a graphical user interface (GUI) built with Swing and stores user data in a JSON file.
- Add User: Add a new user with a username and password.
- Update User: Update the username or password of an existing user.
- Delete User: Remove a user from the system.
- Welcome Screen: A central screen to navigate between different operations.
- JSON Storage: User data is stored in a
user.jsonfile for persistence.
Login/
├── build/
│ ├── classes/
│ └── ...
├── nbproject/
│ ├── build-impl.xml
│ ├── project.properties
│ └── ...
├── src/
│ └── Login/
│ ├── add.java
│ ├── update.java
│ ├── delete.java
│ ├── welcome.java
│ ├── user.json
│ └── ...
├── test/
├── build.xml
└── manifest.mf
- Java Development Kit (JDK) 8 or higher
- Apache Ant (for building the project)
- NetBeans IDE (optional, for development)
- Clone the repository or download the source code.
- Open the project in NetBeans or any Java IDE.
- Build the project using the
build.xmlfile:ant build
- Run the application:
ant run
- The application will open a GUI window starting with the Welcome screen.
src/Login/add.java: Handles adding new users to the system.src/Login/update.java: Handles updating existing user details.src/Login/delete.java: Handles deleting users from the system.src/Login/welcome.java: The main navigation screen for the application.src/Login/user.json: Stores user data in JSON format.
The user.json file stores user data in the following format:
{
"users": [
{
"username": "exampleUser",
"password": "examplePassword"
}
]
}-
add:filecheck(): Reads and validates theuser.jsonfile.btnAddActionPerformed(): Adds a new user to the system.
-
update:filecheck(): Reads and validates theuser.jsonfile.updateButtonActionPerformed(): Updates user details.
-
delete:filecheck(): Reads and validates theuser.jsonfile.btnDeleteActionPerformed(): Deletes a user from the system.
-
welcome:- Navigation buttons to access Add, Update, and Delete screens.
- Modify the
user.jsonfile path in theadd,update, anddeleteclasses if needed. - Update GUI components using the NetBeans Form Editor.
Developed by enfaith1.