font color hashmap jframe actionevent jbutton actionlistener jlabel jpasswordfield jtextfield
This is a simple Java login application that demonstrates how to create a graphical user interface (GUI) for user authentication using JFrame
, JButton
, JTextField
, JPasswordField
, and JLabel
.
This Java login application demonstrates creating a graphical user interface (GUI) for user authentication using JFrame
, JButton
, JTextField
, JPasswordField
, and JLabel
.
The project consists of the following classes:
-
main
- The entry point of the application. It initializes the
authorisation
class and opens theloginForm
.
- The entry point of the application. It initializes the
-
loginForm
- This class creates the GUI for the login form. It contains
JFrame
,JButton
,JTextField
,JPasswordField
, andJLabel
components. - It also handles the login and reset actions through the
ActionListener
interface.
- This class creates the GUI for the login form. It contains
-
authorisation
- This class contains a
HashMap
to store login credentials and provides a method to retrieve the login information.
- This class contains a
-
userPage
- A placeholder class that represents the user's page after successful login.
- Compile all the Java files:
javac main.java loginForm.java authorisation.java userPage.java
We welcome contributions to this project! To contribute, please follow these steps:
-
Fork the repository: Click the "Fork" button at the top right corner of this repository to create your own copy of the project.
-
Clone your fork: Clone your forked repository to your local machine.
git clone https://github.com/your-username/your-forked-repo.git
This project is licensed under the MIT License. See the LICENSE file for details.