Download as pdf or txt
Download as pdf or txt
You are on page 1of 50

A

Project Report
On

“Cashify”

Submitted To the Gondwana University, Gadchiroli in Partial


Fulfilment of the Requirement For The

Master of Computer Application


(SEM-II)

SUBMITTED BY
Mr. Nikhil T. Pardhi

Enrolment No. – (2022033700265053)

Guided By

Prof.Syed Zaki
BIT Ballarpur

DEPARTMENT OF MASTER OF COMPUTER APPLICATION

Ballarpur Institute of Technology, Bamni, Ballarpur

2022 - 2023

1
Certificate

This is to certify that, the project entitled “Cashify”. is record of project done

by Mr. Nikhil Pardhi during session 2022-2023 submitted to the Gondwana

University, Gadchiroli in partial fulfilment of the requirement for the award

of the MCA-I SEM (II) and that the project has not been previously formed

the basis for the award of any other Degree, Diploma, Associate Ship,

Fellowship or other titleand the project represents independent and original

work on the part of the candidate under my guidance.

Prof. Syed Zaki Prof.Sunil Kuntawar


(Project Guide) (Head of the Department)

Internal Examiner External Examiner

2
Declaration
To,

The Principal,

Ballarpur Institute of

TechnologyBallarpur

Respected sir,

We, undersigned students of department of Computer Application hereby

declare that the project entitled “Cashify” completed under the guidance of

Prof. Syed Zaki sir.

This project work is submitted for the partial fulfilment of M.C.A First

yearexamination to the department of Master of Computer Application,

Gondawana University, and Gadchiroli.

We honestly declare that the project developed by us has been carried

out independently and has not been duplicated or copied from other

source.

Thanking You…

Date:-

Place: - Yours Sincerely

Mr. Nikhil Pardhi

3
Acknowledgement

At the very outset, I would like to express my sincere thanks to department of

ComputerScience, for enabling to enter in the IT world

I am thankful to our principal Dr. Rajni Kant to provide me necessary

facility and the software’s in the computer lab which are very helpful

in completing this project.

I also thank our Head of Department Prof. Sunil Kuntawar for their

valuable Suggestions, Guide Prof. Syed Zaki for helping me to

accomplish this project and their invaluable continuous inspiring

guidance and help needed in completion this project. I thank to non-

teaching staff for their help.

Date:-

Place:-Ballarpur Mr. Nikhil Pardhi

4
Index
Topics Page
number
INTRODUCTION
1. Introduction & Objective 7
2. Description 8
3. Preliminary System Analysis 9
REQUIREMENTS & SCOPE
4. Software and Hardware Requirement 11
Specification
5. Module specifications (Scope) 11

ANALYSIS & DESIGN


6. Use Case Diagrams 14
7. Activity Diagram 15
8. Class Diagram 17
9. Module Hierarchy Diagram 18
10. Table specifications (Database design) 21
11. Data dictionary 25
USER MANUAL
12. User Interface Screens (Input) 29
13. Output Screens with data 32
14. Sample program code 34
LIMITATIONS AND BIBLIOGRAPHY
15. Limitations 49
16. Bibliography 50

5
INTRODUCTION
AND OBJECTIVE

6
1: INTRODUCTION & OBJECTIVE

The main purpose of this desktop application is we wanted to help to

shopkeeper for buying and replacing phone without maintaining manual work. It is

quite that the system of an option is very easy and convenient for those user they are

trying to buy phone from customer. This system allows you to buy old phone and

repair phone without putting estimated thinks. The main mission is to transform the

way of users to using manual system to new system

Cashify mission is to transform the way of buying phones and repair and repair

phones online. They help you to buy or repair phones without putting manualefforts

and buy phones at good price and least efforts. Through their localized network of

professional seller across the country, they make sure you are able to buyyour old or

used gadgets in the fastest wat possible and get best experience. There are no loophole

or conditions regarding the price that is generated for customer phones and it is also

the best in the business.

7
2: DECRIPTION

The cashify system will eliminate most of the limitation of the existing

software increasing efficiency and effectiveness, automation, accuracy, user friendly

interface information availability, communication capacity, maintenance, cost

reduction maker our system smarter than the existing system. The cashify system will

provide facility to user for Buying phone without putting estimation process onbrain

the shopkeeper will use this application to calculate accurate price of phone as per

the hardware condition of phone.

And so software will store detail about the customer who want to sell phone to

shopkeeper. The application will store details ofcustomer like personal information,

address as well as payment information. So the shopkeeper can done registration

process for user, Buy phone as well as or repair phone process through this new

system.

8
3: PRELIMINARY SYSTEM ANALYSIS

The existing system work manually. The existing system has got lot of intricacies

within itself and need lot of human effort and paper works. It involves hand written

records store into various register. The shopkeeper are also maintaining record

manually like price of device part of mobile phones and repairing charger. It’s require

a lot of times are well or manpower. So the task of maintaining then increase

exponentially to view data may need lot of paper to be scratched.

9
REQUIREMENTS
AND SCOPE

10
4: SOFTWARE AND HARDWARE REQUIREMENT SEPECIFICATION

To install project successfully the hardware and software used are:

Requirements are as follows:


Hardware tools

 Processor : intel Platinum or above


 Hard disk: 50 GB
 Ram: 512 mb or more

Software tools

 Operating system: windows 7, windows 10, windows 11.


 Languages : java swing
 Database : MySQL server
 Latest updated browser (Ex. Google chrome) other internet service provider.

5: MODULE SPECIFICATION (SCOPE)

o Log in: When the shopkeeper will be need to buy or repair phone. So they will login
application through contact and password details.

o Registration: Once the shopkeeper will log in they will registration for customer.In
registration they will ask some general details to customer, like name, contact
email, etc.

11
o Profile: In this if user wants to change some details or wants to fill details so they
can fill or update details.

o Buy smartphones: The customer wants to sell phone so shopkeeper will use this
option to take some details about phone and calculate what will be the actual
price of that old phone.

o Repair smartphone: The shopkeeper they will use this option for calculating the
actual repairing charges of phone without putting manual or brain efforts to find
out the repairing charges.

o About: In this the user wants to know about this platform they can use this option
for knowing about structure operation.

o Help: If the shopkeeper or user will facing same technical issues with application
so they can use this option to connect with technical support team.

12
ANALYSIS AND
DESIGN

13
6. Use case Diagram:

14
7. Activity Diagram

Activity Diagram for Repair phone

15
Activity Diagram for Buy Phone

16
8: Class Diagram:

17
9: Module Hierarchy Diagram

18
ER Diagram:

19
Sequence Diagram:-

Collaboration Diagram

20
10: Table specifications (Database design)

Table Name: User Registration Table

Sr. No Attributes Date Type Constrain Si


ts ze

1 User_id Varchar Primary 5


Key
2 Name varchar - 15

2 Last_name Varchar - 10

3 Mobile_No Varchar - 12

4 E-mail Varchar - 20

5 Password varchar - 20

Table name: Phone Details


Sr. Attributes Data Constrain Si
No. Type ts ze
1 Model Varchar Not null 15
2 Price Varchar Not null 15
3 Touch_screen Varchar Not null 15
4 Receive_call Varchar Not null 15
5 Brand_waranty Varchar Not null 15
6 Battery_health Varchar Not null 15
7 Screen_orginal Varchar Not null 15
8 Body_damage Varchar Not null 15
9 Phone_bill Varchar Not null 15

21
Table name: Cash on Payment

Sr. Attributes Data Type Constraint Si


No s ze
1 Cashpay_i Int Primary 11
d Key
2 price Varchar Not null 20

3 Contact Varchar Not null 20

4 Model Varchar Not null 20

5 User_id Varchar Foreign 10


key
6 action Varchar Not null 10

Table Name: Repair Phone

Sr. Attributes Date Constraints Si


No Type ze

1 Model varchar Not null 20

2 Screen int Not null 15

3 Battery Int Not null 15

4 Proximity Int Not null 15

5 Receiver Int Not null 15


6 Speacker Int Not null 15

7 Charging Int Not null 15


point
8 mic int Not null 15

22
Table name: Address Table

Sr. Attributes Date Type Constraint Si


No. s ze

1 Add_id varchar Primary 10


Key
2 Landmark Varchar Not null 25

3 City Varchar Not null 10

4 State Varchar Not null 10

5 Pincode Varchar Not null 7


6 Contact Varchar Not null 12
7 Address Varchar Not null 10
Type
8 User-id Varchar Not null 10

Table name: Card Payment

Sr Attributes DataTy Constraints Si


No. pe ze
1 Cpay_id Varchar Not null 5

2 Contact Varchar Not null 12

3 Card no Varchar Not null 17

4 Expiry Varchar Not null 6

5 CVC Varchar 5
Not null
6 User_id Varchar Not null 10

23
Table Name: UPI id

Sr. Attributes DataTyp Constraints Siz


No e e

1 Upay_id Varchar Primary 5


Key

2 Contact Varchar Not null 12

3 Upi_id Varchar Not null 17

Table Name: User Query Table

Sr. Attributes DataTy Constraints Si


No pe ze

1 Query_id int Primary 11


Key
2 User_query_buy Varchar Not null 30

3 User_query_rep Varchar Not null 30


air
4 User_id Varchar Foreign 10
Key

24
11: Data Dictionary
Sr. Field Name Type Siz Key Constrai Description Table
No e nt Name
s
1 User_id varchar 5 Primary Not null Id number User
Key Registratio
n
2 First_Name Varchar 10 - Not null User name User
Registratio
n
3 Last_name Varchar 12 - Not null User User
lastname Registratio
n
4 Mobile_no Varchar 20 - Not null Mobile no User
Registratio
n
5 E-mail varchar 20 - Not null User email User
Registratio
n
6 Model varchar 15 - Not null Mobile Phone
Model Details
7 Price Varchar 15 - Not null Mobile Price Phone
Details
8 Touch_screen Varchar 15 - Not null Screen Touch Phone
Details
9 Receive_call Varchar 15 - Not null Receive Call Phone
Details
10 Brand_warant Varchar 15 - Not null Brand Phone
y Warranty Details
11 Battery_health Varchar 15 - Not null Mobile Phon
Battery e
health Detai
ls
12 Screen_orgina Varchar 15 - Not null Mobile Phone
l Screen Details
13 Body_damage Varchar 15 - Not null Mobile Phone
Damaged Details
14 Phone_bill Varchar 15 - Not null Mobile Bill Phone
Details
15 Cashpay_id Int 11 Primary Not null Not null Cash
Key Payment Id payment
16 price Varchar 20 - Not null Mobile Price Cash
payment

25
17 Contact Varchar 20 - Not null User Cash
Contact payment
no
19 User_id Varcha 10 Foreign Not null Id number Cash
r key payment
20 action Varcha 10 - Not null Cash
r payment
21 Model varchar 20 - Not null Repairing Repair
Model Mobile

22 Screen 15 - Not null Screen Repair


int Repair Mobile
23 Battery Int 15 - Not null Repair Repair
Battery Mobile
24 Proximity Int 15 - Not null Repair
Mobile
25 Receiver Int 15 - Not null Repair
Mobile
26 Speacker Int 15 - Not null Mobile Repair
Speacker Mobile
27 Charging Int 15 - Not null Charging Repair
point Point Mobile
28 mic int 15 - Not null Mobile mic Repair
Mobile
29 Add_id varchar 10 Primary Not null Address id Address
key Table
30 Landmark varchar 25 - Not null Landmark Address
Table
31 City varchar 10 - Not null User city Address
Table
32 State varchar 10 - Not null User State Address
Table
33 Pincode varchar 7 - Not null City pincode Address
Table
34 Contact varchar 12 - Not null User contact Address
no Table
35 Address Type varchar 10 - Not null Office / Address
home Table
36 User-id varchar 10 - Not null User id Address
Table
37 Cpay_id varchar 5 - Not null Card Card
payment payment
id
26
38 Contact Varchar 12 - Not null Register Card
mobile payment
no
39 Card no Varchar 17 - Not null Card no Card
payment
40 Expiry Varchar 6 - Not null Card Card
expiry payment
41 CVC Varchar 5 - Not null Card cvc Card
payment
42 User_id varchar 10 - Not null User id Card
payment
43 Upay_id varchar 5 Primar Not null Upi Upi
y payment payment
key id
44 Contact Varchar 12 - Not null Register Upi
mobile payment
no
45 Upi_id varchar 17 - Not null Upi id Upi
payment
46 User_id Int 10 Foreign Not null User id Upi
Key payment
47 Query_id Varchar 11 Primar Not null Help id Quer
y y
key
48 User_query_bu Varchar 30 Not null Buy Help Quer
y y

49 User_query_r Varchar 30 Not null Repair help Quer


ep y
air
50 User_id varchar 10 Foreign Not null User id Quer
Key y

27
USER MANUAL

28
12: User Interface Screens (Input)
Login page:-

29
Customer Registration Page:-

30
Mobile Brand Page:-

31
Repair phone

32
Payment:

33
14. Sample Code Page
Login Page Code

import
java.awt.Component;
import
java.awt.EventQueue;

import javax.swing.JFrame;
importjavax.swing.JPanel;
import
javax.swing.JPasswordField
;
import javax.swing.border.EmptyBorder;

import

com.mysql.cj.protocol.Resultset;

import javax.swing.JLabel;
import javax.swing.JOptionPane;

import
java.awt.Font;
import
java.awt.Image;

import
javax.swing.JTextField; import
javax.swing.Icon; import
javax.swing.ImageIcon; import
javax.swing.JButton; import
java.awt.event.ActionListener;
importjava.sql.Connection;
import java.sql.DriverManager;
import
java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import
java.awt.event.ActionEvent;
import java.awt.SystemColor;
import
java.awt.event.KeyAdapter;
import
java.awt.event.KeyEvent;
import
java.awt.event.MouseAdapter;
import
java.awt.event.MouseEvent;
import
javax.swing.SwingConstants;
import java.awt.Color;
34
public class Login extends

JFrame {JPanel

contentPane;
JTextField txtcontact1;

privateJTextField txtpass1;

/**
* Launch the application.

*/
public static void main(String[] args) {
EventQueue.invokeLater(new
Runnable() {public void run() {
try {

Login frame = new Login();

frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});

/**
* Create the frame.
*/
public Login() {
setFont(new Font("Lucida Fax",
Font.BOLD, 15));setTitle("Cashify");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 826, 638); contentPane = new JPanel();
contentPane.setBackground(new Color(211, 211, 211));
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));

setContentPane(contentPane);
contentPane.setLayout(null);

35
JLabel lblNewLabel_1 = new JLabel("Login User");
lblNewLabel_1.setFont(new Font("Comic Sans MS",
Font.BOLD, 23));lblNewLabel_1.setBounds(368, 113, 149, 33);
contentPane.add(lblNewLabel_1);

JLabel lblNewLabel_2 = new JLabel(" Mobile No. :");


lblNewLabel_2.setFont(new Font("Comic Sans MS", Font.PLAIN,
18));
lblNewLabel_2.setBounds(258, 201, 112, 22); contentPane.add(lblNewLabel_2);

txtcontact1 = new JTextField();


txtcontact1.setBackground(SystemColor.text);
txtcontact1.setBounds(380, 199, 197, 33);
contentPane.add(txtcontact1);
txtcontact1.setColumns(10);

JLabel lblNewLabel_3 = new JLabel("Password :");


lblNewLabel_3.setFont(new
Font("Comic Sans MS", Font.PLAIN, 18)); lblNewLabel_3.setBounds(275, 263,
92, 33);
contentPane.add(lblNewLabel_3);

txtpass1 = new
JPasswordField();
txtpass1.setBounds(380, 266, 197,
33); contentPane.add(txtpass1);
txtpass1.setColumns(10);

JButton btnNewButton = new


JButton("LOGIN");
btnNewButton.setForeground(SystemColor.control
Text); btnNewButton.setBounds(357, 355, 121, 43);
contentPane.add(btnNewButton);

btnNewButton.setBackground(SystemColor.activeCaptionBorder);
btnNewButton.addActionListener(new ActionListener() {

private Object url;

public void
actionPerformed(ActionEvent e) {
String Contact=txtcontact1.getText();
String Pass=txtpass1.getText();
if(txtcontact1.getText().length()>=3 &&
txtpass1.getText().length()>=3)try {
Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/cashify","root","");
PreparedStatement st= (PreparedStatement)
conn.prepareStatement("Select contact,password from user where contact=? and password=?");
36
st.setString(1,Co
ntact);st.setString(2, Pass);
ResultSet
rs=st.executeQuery();
if(rs.next()) {

Component btnNewButton1 = null;


JOptionPane.showMessageDialog(btnNewButton1,
"Logged In
Successfully Component lblNewLabel_5 = null;
.................................... int
");

res=JOptionPane.showConfirmDialog(lblNewLabel_5,"Are You want to Registartion


for Customer","Confirmation Box", JOptionPane.YES_NO_OPTION
,JOptionPane.QUESTION_MESSAGE);
if(res==JOptionPane.YES_OPTION)
{
Registration r= new Registration();
r.setVisible(true);
dispose();
}
else
{

Login l= new Login();


l.setVisible(false);

else { Enter your Correct Contact or Password

details");

}
}

JOptionPane.showMessageDialog(btnNewButton, "Please

37
} catch (SQLException e1) {
// TODO Auto-generated
catch block
e1.printStackTrace();
}
else
{
JOptionPane.showMessageDialog(btnNewButton, "Please Enter
Login
Details"); }

}
});
btnNewButton.setFont(new Font("Comic Sans MS", Font.BOLD, 18));

JPanel panel = new JPanel();


panel.setBackground(new Color(173, 216,
230));
panel.setBounds(216, 84,
429, 414);
contentPane.add(panel);

}
}

38
Registration page:
import
java.awt.EventQueue;
import
java.lang.Integer;

import javax.swing.JFrame;
import javax.swing.JPanel; import
javax.swing.border.EmptyBorder;
importjavax.swing.JLabel;
import javax.swing.JOptionPane;

import java.awt.Font; import


javax.swing.JTextField; import
javax.swing.JButton; import
java.awt.Color; import
java.awt.Component; import
java.awt.event.ActionListener;
import java.sql.Connection; import
java.sql.DriverManager; import
java.sql.PreparedStatement; import
java.sql.SQLException; import
java.awt.event.ActionEvent; import
javax.swing.SwingConstants; import
javax.swing.UIManager; import
java.awt.Window.Type; import
javax.swing.JPasswordField; import
java.awt.SystemColor; import
java.awt.event.InputMethodListener;
import
java.awt.event.InputMethodEvent;
import
java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JCheckBox;

public class Registration extends

JFrame {private JPanel

contentPane;
private JTextField txtname;
private JTextField
txtlname; JTextField
txtcontact;

private
JTextField txtemail;

privateJTextField txtpass;
JButton btnregister;
JLabel lblnameerror;

39
JLabellblpasserror;
JLabel
lblemailerror;
JLabel
lbllnameerror;
JLabel
lblcontacterror;
JCheckBox
chkconfirm;
String NAME_PATTERN="[A-
Za-z]*";String
CONTACT_PATTERN="[0-9]*";

/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new
Runnable() {public void run() {
try {
Registration frame = new Registration();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});

/**
* Create the frame.
*/

public void name() {


String NAME_PATTERN="[A-Za-z]*";
if ( txtname.getText().matches(NAME_PATTERN) && txtname.getText().length()>=3 )
{
lblnameerror.setText("");

}
else {
lblnameerror.setText("Enter Correct Name");

}
}
public void lname() {
String NAME_PATTERN="[A-Za-z]*";
if(txtlname.getText().matches(NAME_PATTERN)&& txtlname.getText().length()>=3 )
{
lbllnameerror.setText("");
40
}
else {
lbllnameerror.setText("Enter Correct lName");
}
}
public void contact() {
String CONTACT_PATTERN="[0-9]*";
if(txtcontact.getText().length()==10 &&
txtcontact.getText().matches(CONTACT_PATT
ERN) )
{
lblcontacterror.setText("");

}
else {
lblcontacterror.setText("Enter Correct contact");

}
}

public void email() {


String EMAIL_PATTERN =
"^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@"
+ "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
if( txtemail.getText().length()>=12 && txtemail.getText().matches(EMAIL_PATTERN))
{
lblemailerror.setText("");

}
else {
lblemailerror.setText("Enter Correct email");

}
}

public void password() {


if (txtpass.getText().length()>=8)
{
lblpasserror.setText("");

}
else {
lblpasserror.setText("Enter Correct Password");

}
41
public void check()
{
String EMAIL_PATTERN =
"^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@"
+ "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
if ( txtname.getText().matches(NAME_PATTERN) && txtname.getText().length()>=3
&&txtlname.getText().matches(NAME_PATTERN)&& txtlname.getText().length()>=3
&&txtcontact.getText().length()==
10 &&txtcontact.getText().matches(CONTACT_PATTERN)
&&
txtemail.getText().length()>=12 &&
txtemail.getText().matches(EMAIL_PATTERN)
&&txtpass.getText().length()>=8)
{
btnregister.setEnabled(true);

}
e
l btnregister.setEnabled(false)
s
e

public Registration() {
setFont(new Font("Dialog",
Font.BOLD, 15));setType(Type.POPUP);
setTitle("Cash
ify");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 925, 666); contentPane = new JPanel();
contentPane.setBackground(new Color(240, 255, 240));
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));

setContentPane(contentPane);
contentPane.setLayout(null);

JLabel lblNewLabel_1 = new JLabel("Customer Registration");


lblNewLabel_1.setFont(new Font("Lucida Fax", Font.BOLD, 22));
lblNewLabel_1.setBounds(348, 48, 283, 48);
contentPane.add(lblNewLabel_1);

JLabel lblNewLabel_2 = new JLabel("Name :");


lblNewLabel_2.setBackground(new Color(192, 192, 192));
lblNewLabel_2.setFont(new Font("Lucida Fax",
Font.BOLD, 15));lblNewLabel_2.setBounds(337, 138, 70,
26); contentPane.add(lblNewLabel_2);

txtname = new JTextField();


txtname.setToolTipText("Enter your first
name");txtname.setBounds(417, 133, 188,
41); contentPane.add(txtname);
txtname.setColumns(10); 42
JLabel lblNewLabel_2_1 = new JLabel("Lname :");
lblNewLabel_2_1.setFont(newFont("Lucida Fax", Font.BOLD, 15));
lblNewLabel_2_1.setBounds(332, 189, 75,
26); contentPane.add(lblNewLabel_2_1);

txtlname = new JTextField();


txtlname.setToolTipText("Enter your last
name");txtlname.setBounds(417, 184, 188,
41);
contentPane.add(txtl
name);
txtlname.setColumns
(10);

JLabel lblNewLabel_3 = new JLabel("Mobile No.


:"); lblNewLabel_3.setFont(new Font("Lucida Fax",
Font.BOLD, 14));lblNewLabel_3.setBounds(305, 239, 93,
28); contentPane.add(lblNewLabel_3);

txtcontact = new JTextField();


txtcontact.setToolTipText("Enter your contact");
txtcontact.addInputMethodListener(new
InputMethodListener() {public void
caretPositionChanged(InputMethodEvent arg0) {
}
public void inputMethodTextChanged(InputMethodEvent arg0) {

}
}
});

txtcontact.addActionListener(new ActionListener()
{ public void
actionPerformed(ActionEvent arg0) {

}
});
txtcontact.setBounds(417, 235,
188, 41);contentPane.add(txtcontact);
txtcontact.setColumns(12);

JLabel lblNewLabel_4 = new JLabel("Email Id : ");


lblNewLabel_4.setFont(new Font("Lucida Fax",
Font.BOLD, 15));lblNewLabel_4.setBounds(311, 298, 87,
13);
contentPane.add(lblNewLabel_4);
43
txtemail = new JTextField();
txtemail.setToolTipText("Enteryour email");
txtemail.setBounds(417, 286, 188, 41);
contentPane.add(txtemail); txtemail.setColumns(25);

JLabel lblNewLabel_5 = new JLabel("Password :");


lblNewLabel_5.setFont(new Font("Lucida Fax",
Font.BOLD, 15));lblNewLabel_5.setBounds(308, 351, 87,
19); contentPane.add(lblNewLabel_5);

txtpass = new JPasswordField();


txtpass.setToolTipText("Please Enter Your
Password ");
txtpass.setBounds(417, 342,
188, 41);contentPane.add(txtpass);
txtpass.setColumns(10);

btnregister = new JButton("Register");


btnregister.setEnabled(false);
btnregister.setBackground(new
Color(224, 255, 255));
btnregister.addActionListener(ne
w
ActionListener() {
publ
ic voidactionPerformed(ActionEvent
arg0) {

try {

Class.forName("com.mysql.cj.jdbc.Driver"
);Connection conn=
DriverManager.getConnection("jdbc:mysql://localhost:3306/cashify","root","");
String query="insert into registration
values(NULL,?,?,?,?,?)";
PreparedStatement ps=conn.prepareStatement(query);
ps.setString(1,
txtname.getText());ps.setString(2,
txtlname.getText());
ps.setString(3,
txtcontact.getText());ps.setString(4,
txtemail.getText());
ps.setString(5, txtpass.getText());
int i=ps.executeUpdate();
ps.close();
conn.close();
Component btn1 = null;
JOptionPane.showMessageDialog(btn1,
"Registered
Successfully int
.....................................
");

44
res=JOptionPane.showConfirmDialog(
lblNewLabel_5,"Are You want Login
","Confirmation Box",
JOptionPane.YES_NO_OPTION Registration R= new Registration();
,JOptionPane.QUESTION_MESSAG R.setVisible(false);
E);

catch (Exception e1)


{
Component btn1 = null;
JOptionPane.showMessageDialog(btn1, "PLease
Enter Correct
Details");

}
});
btnregister.setFont(new Font("Segoe UI",
Font.BOLD, 19));btnregister.setBounds(384, 473, 170, 48);
contentPane.add(btnregister);

JLabel lblrlogin = new


JLabel("Login");
lblrlogin.addMouseListener(new
MouseAdapter() {
@Override
public void
mouseClicked(MouseEvent e) {
Login l=new Login();
l.setVisible(true)
; dispose();

}
});

45
lblrlogin.setForeground(Color.BLUE);
lblrlogin.setFont(new Font("Lucida Fax",
Font.BOLD, 17));
lblrlogin.setBounds(437, 531, 70, 35); contentPane.add(lblrlogin);

lblnameerror = new JLabel("");


lblnameerror.setFont(new Font("Lucida Sans",
Font.PLAIN, 12));lblnameerror.setBounds(613, 145, 188, 19);
contentPane.add(lblnameerror);

lbllnameerror = new JLabel("");


lbllnameerror.setFont(new Font("Lucida Sans",
Font.PLAIN, 12));lbllnameerror.setBounds(613, 196, 188, 19);
contentPane.add(lbllnameerror);

lblcontacterror = new JLabel("");


lblcontacterror.setFont(new Font("Lucida Sans",
Font.PLAIN, 12));lblcontacterror.setBounds(613, 248, 188,
19); contentPane.add(lblcontacterror);

lblemailerror = new JLabel("");


lblemailerror.setFont(new Font("Lucida Sans",
Font.PLAIN, 12));lblemailerror.setBounds(613, 292, 188,
19); contentPane.add(lblemailerror);

lblpasserror = new JLabel("");


lblpasserror.setFont(new Font("Lucida Sans",
Font.PLAIN, 12));lblpasserror.setBounds(613, 351, 188,
19); contentPane.add(lblpasserror);

JCheckBox chkconfirm = new


JCheckBox("Confirm"); chkconfirm.setFont(new
Font("Lucida Fax", Font.PLAIN, 12));
chkconfirm.addMouseListener(new MouseAdapter() {
@Override
public void
mouseClicked(MouseEvent
e) {
if(chkconfirm.isSelected()) {
name();
lname();
contact(); email();
password();
check();
}
else
{

}
}
});
chkconfirm.setBounds(490, 417,
93, 28);contentPane.add(chkconfirm);
46
JLabel lblNewLabel = new JLabel("Enter Detail is
Correct?");lblNewLabel.setFont(new Font("Tahoma",
Font.BOLD, 14)); lblNewLabel.setBounds(314, 420, 170, 25);
contentPane.add(lblNewLabel);

JPanel panel = new JPanel();


panel.setBackground(new Color(173, 216,
230));
panel.setBounds(191, 48, 610, 526);
contentPane.add(panel);

}
}

47
LIMITATIONS AND
BIBLIOGRAPHY

48
15: Limitations:

 Log-in is mandatory for users to buy or repair phones.

 The shopkeeper can work on limited issues if the customer has more
issues so theshopkeeper will confuse to estimate the price of phones or
repairing charges of phones.

 Sometimes the shopkeeper will be not sure user has given the correct
informationor not.

 The user can work on specific models only and specific issues only.

 Still need many improvements.

49
16: Bibliography:

• www.youtube.com
• www.javatpoint.com
• www.w3school.com
• www.geeksforgeeks.com
• www.tutorialspoint.com
• www.programiz.com
• www.learnjavaonline.com
• www.couseera.org
• www.developers.com
• www.udemy.com

50

You might also like