0% found this document useful (0 votes)
7 views13 pages

AJP Mini Project RTM

Uploaded by

yashmahajan377
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views13 pages

AJP Mini Project RTM

Uploaded by

yashmahajan377
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Synopsis

On

Mini Project on Design registration form


Submitted in the partial fulfillment of the requirement for the diploma
Of
Diploma in Computer
Technology
Rahul mali
Ratnesh more
Anish
dhamanaskar
Sarthak surve
Under the guidance of
Miss.Harshali Patil

Department of COMPUTER TECHNOLOGY


SHUVAJIRAO S. JONDHALE POLYTECHNIC, AMBERNATH
(MAHARASHTRA)
Maharashtra state board of technical
education (2023-2024)
Maharashtra State Board of Technical
Education
Certificate
This is to certify that MR./MS. of 5th semester of Diploma in Computer
technology of Institute, Shivajirao S. Jondhale Polytechnic (Code:0147) Has
completed the Micro Project satisfactory in subject: AJP for the academic year
(2023-2024) as prescribed in the curriculum

SR NO. Name of the Roll No. Enrollment Seat No.


Group Members No.

1. RAHUL MALI 1427 2101470049


2. RATNESH MORE 1421 2101470064
3. ANISH 1420 2101470047
DHAMANASKAR
4 SARTHAK SURVE 1410 2201470137

Place: AMBERNATH
Date:

Subject Teacher Head of the Department Principal


INDEX

SR. Content Page


NO. No.

1. Design registration form 1.

2. OUTPUT 6.
CODE :

1.import javax.swing.*;
2.import java.awt.*;
3.import java.awt.event.ActionEvent;
4.import java.awt.event.ActionListener;
5.public class RegistrationFor extends JFrame {
6. private JTextField nameField, emailField, countryField,
stateField, phoneField;
7. private JPasswordField passwordField,
confirmPasswordField;
8.private JButton submitButton, cancelButton;
9. private JLabel passwordMismatchLabel;
10. public RegistrationFor() {

11. setTitle("Registration Form");


12. setSize(400, 300);
13. setVisible(true);
14.setBounds(500,100,500,700);
15. setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
16. setResizable(true);
17 .setLayout(null);
// Create form components
JLabel nameLabel = new JLabel("Name");
nameLabel.setBounds(50, 60, 100, 30);
nameField = new JTextField();
nameField.setBounds(200, 60, 200, 30);
JLabel emailLabel = new JLabel("Email");
emailLabel.setBounds(50, 110, 100, 30);
emailField = new JTextField();
emailField.setBounds(200, 110, 200, 30);
JLabel phoneLabel = new JLabel("Phone Number");
phoneLabel.setBounds(50, 160, 100, 30);
phoneField = new JTextField();
phoneField.setBounds(200, 160, 200, 30);
JLabel countryLabel = new JLabel("Country");
countryLabel.setBounds(50, 210, 100, 30);
countryField = new JTextField();
countryField.setBounds(200, 210, 200, 30);
JLabel stateLabel = new JLabel("State");
stateLabel.setBounds(50, 260, 100, 30);
stateField = new JTextField();
stateField.setBounds(200, 260, 100, 30);
JLabel passwordLabel = new JLabel("Password");
passwordLabel.setBounds(50, 310, 100, 30);
passwordField = new JPasswordField();
passwordField.setBounds(200, 310, 200, 30);
JLabel confirmPasswordLabel = new JLabel("Confirm
Password");
confirmPasswordLabel.setBounds(50, 360, 100, 50);
confirmPasswordField = new JPasswordField();
confirmPasswordField.setBounds(200, 360, 200, 30);
passwordMismatchLabel = new JLabel("");
passwordMismatchLabel.setForeground(Color.RED);
passwordMismatchLabel.setBounds(50,430,400,30);
submitButton = new JButton("Submit");
submitButton.setBounds(50, 500, 100, 30);
cancelButton = new JButton("Cancel");
cancelButton.setBounds(180, 500, 200, 30);
// Add components to the frame
add(nameLabel);
add(nameField);
add(emailLabel);
add(emailField);
add(countryLabel);
add(countryField);
add(stateLabel);
add(stateField);
add(phoneLabel);
add(phoneField);
add(passwordLabel);
add(passwordField);
add(confirmPasswordLabel);
add(confirmPasswordField);
add(passwordMismatchLabel);
add(submitButton);
add(cancelButton);
// Add action listeners for buttons
submitButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (isPasswordMatching()) {
//saveToDatabase();
clearFields();
passwordMismatchLabel.setText("");
} else {
passwordMismatchLabel.setText("Password does not
match!");
}
}
});
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
clearFields();
confirmPasswordField.setText("");
}
});
}
private boolean isPasswordMatching() {
String password = new String(passwordField.getPassword());
String confirmPassword = new
String(confirmPasswordField.getPassword());
return password.equals(confirmPassword);
}
private void clearFields() {
nameField.setText("");
emailField.setText("");
passwordField.setText("");
confirmPasswordField.setText("");
countryField.setText("");
stateField.setText("");
phoneField.setText("");
}
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
RegistrationFor registrationFor = new RegistrationFor();
}
});
}
}
OUTPUT
OUTPUT
References

* https://chat.openai.com/

*
Marks

Roll No. Name of Student Marks of group Marks obtained Total Marks
work A by the individual (A+B)
(Out of 4) based in Viva B
(Out of 6)

1427 RAHUL MALI


1411 RATNESH
MORE
1404 ANISH
DHAMANASK
AR
1430 SARTHAK
SURVE

Name and Signature of Faculty:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy