This repository hosts two Java Swing-based registration form applications that demonstrate basic and advanced GUI functionality for collecting user information and displaying it in a table. These projects are great for beginners looking to learn Java Swing and for experienced developers seeking to enhance their GUI design skills.
The repository contains two distinct Java Swing projects:
-
Basic Registration Form: A simple form allowing users to input basic information like ID, Name, Gender, Address, and Contact, and then display the details in a table.
-
Advanced Registration Form: An extended version with additional fields like Mobile, Date of Birth (D.O.B), and an "Accept Terms and Conditions" checkbox, along with form validation and reset functionality.
These projects are designed to provide a clear understanding of how to create interactive user interfaces using Java Swing components like JTextField
, JRadioButton
, JTable
, JButton
, and more.
- User-friendly interface for entering basic personal details.
- Displays registered information in a table.
- Form validation to ensure all fields are filled.
- Simple and clean design.
- Additional input fields for Mobile, D.O.B, and Address.
- Gender selection with radio buttons.
- Date of Birth selection using drop-downs.
- Terms and Conditions checkbox.
- Submit and Reset buttons for enhanced form interaction.
- Improved form validation.
Before running these projects, ensure you have the following installed on your system:
- Java Development Kit (JDK): You need to have
javac
, the Java compiler, installed. You can download it from the official Oracle website or install it via a package manager (e.g.,apt-get
on Ubuntu,brew
on macOS).
-
Clone the repository:
git clone git@github.com:FadhilMulinya/registration.git
git clone https://github.com/FadhilMulinya/registration.git
git clone gh repo clone FadhilMulinya/registration
-
Navigate to the project directory:
cd registration
-
Compile the Java files:
javac -d bin src/*.java
This command compiles all the Java files in the
src
directory and places the compiled classes in thebin
directory. -
Run the application:
java -cp bin Main
java -cp bin Registration
-
Or Open in an IDE:
- Open the project in your favorite Java IDE (e.g., IntelliJ IDEA, Eclipse, NetBeans).
- Build and run the project to see the forms in action.
These projects can be used as a starting point for developing more complex applications that require user data collection. You can extend the functionality by adding features like database integration, user authentication, and more sophisticated form validation.
Contributions are welcome! If you have suggestions, ideas, or bug fixes, feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.