Skip to content

Instantly share code, notes, and snippets.

View Sabareh's full-sized avatar
:atom:
Mastering

Victor Oketch Sabare Sabareh

:atom:
Mastering
View GitHub Profile
@Sabareh
Sabareh / LoginRegistrationForm.java
Created March 22, 2023 15:44
A basic login and registration form with fields for name, email, password, and confirm password. The form uses Java AWT/Swing components and includes event listeners for the login and registration buttons. Note that the login and registration functionality still needs to be implemented.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class LoginRegistrationForm extends JFrame implements ActionListener {
private JLabel titleLabel, nameLabel, emailLabel, passwordLabel, confirmPasswordLabel;
private JTextField nameField, emailField;
private JPasswordField passwordField, confirmPasswordField;
private JButton loginButton, registerButton;