You are on page 1of 45

STATISTICAL REPORTS ON CRICKET PLAYERS

A PROJECT REPORT

Submitted to

SAVEETHA INSTITUTE OF MEDICAL AND TECHNICAL SCIENCES

In partial fulfilment for the award of the degree of

BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
by
Student Name: I. Vinay Kumar Reddy
Reg. No : 191611109
Supervisor
Guide name :MS. Deepa

SAVEETHA SCHOOL OF ENGINEERING


SAVEETHA INSTITUTE OF MEDICAL AND TECHNICAL
SCIENCES, CHENNAI – 602 105
MAY 2018

1|Page
BONAFIDE CERTIFICATE

Certified that this project report "STATISTICAL REPORTS ON CRICKET


PLAYERS” is the bonafide work of “I.VINAY KUMAR REDDY(Reg. No.
191611109)” who carried out the project work under my supervision.

SIGNATURE SIGNATURE

Dr. S. ANUSUYA Ms.DEEPA


HEAD OF THE DEPARTMENT PROJECT SUPERVISOR
Professor, Dept. Of CSE Assistant Professor, Dept. of CSE
Saveetha School of Engineering Saveetha School of Engineering
SIMATS, Chennai - 602 105 SIMATS, Chennai – 602105

INTERNAL EXAMINER EXTERNAL EXAMINER

2|Page
DECLARATION BY THE CANDIDATE

I declare that the report entitled “STATISTICAL REPORTS ON CRICKET

PLAYERS ” submitted by me for the degree of Bachelor of Engineering is


the record of the project work carried out by me under the guidance of
“Ms.Deepa” and this work has not formed the basis for the award of any
degree, diploma, associateship, fellowship, titled in this or any University or
other similar institution of higher learning.

SIGNATURE

I. VINAY KUMAR REDDY


(Reg. No. 191611109)

3|Page
ABSTRACT

The objective of this project “S


STATISTICAL REPORTS ON CRICKET PLAYERS”

is to get quick information on cricket players and fans are mainly interested to know their

favourite players details. The boardcasters of cricket didn’t show cricket players details

between the match, at the time it is very useful to know player details. In this project firstly

person should confirm their identity by authentication. Authentication form is front end is written

in java language. After confirmation of identity, player search form is displayed. Player search

form is written in java . Then, person search any player. In this project JAVA is used for

frontend, SQL is used as backend. SQL is used store player details like name, age , country,

batting style, bowling style, runs scored, matches played, balls faced, centuries , fiftes , double

hundreds etc. The project is written with the SQLsever which requires less work and most time

efficient even can be handled by nontechnical persons.It is very easy to use because it is not highly

complicated .It can be operated a person who knows basic computer operating. Statistics portal is

implemented using java platform.

4|Page
ACKNOWLEDGEMENT

This project work would not have been possible without the contribution of many people.

It gives me immense pleasure to express my profound gratitude to our honorableChancellor,Dr.

N. M. Veeraiyan, Saveetha Institute of Medical and Technical Sciences, for his blessings and

for being a source of inspiration. Isincerely thank our Vice Chancellor,Dr. JawaharNesan, for

his visionary thoughts and support.I am indebted to extend my gratitude to our Director

Madam,Mrs. Ramya Deepak, Saveetha School of Engineering, forfacilitating us all the

facilities and extended support to gain valuable education and learning experience.

I register my special thanks to Dr. D. Dhanasekaran, Principal, Saveetha School of

Engineering and Dr. S. Anusuya, HoD, Department of Computer Science and Engineering, for

the support given to me in the successful conduct of this project.I wish to express my sincere

gratitude to my supervisor,Ms. Deepa for her inspiring guidance, personal involvement and

constant encouragement during the entire course of this work.

I am grateful to Project Coordinators, Review Panel External, Internal Members and the

entire faculty of the Department of Computer Science and Engineering, for their constructive

criticisms and valuable suggestions which have been a rich source to improve the quality of this

work.

I.VINAY KUMAR REDDY

5|Page
TABLE OF CONTENTS

CHAPTER TITLE PAGE


NO. NO.

Abstract 4

List of Figures 8

List of Abbreviations 9

1 INTRODUCTION 10
1.1 Introduction of Domain/Project 10
1.2 Objective of the Problem 10
1.3 Scope of the project 11
2 LITERATURE REVIEW 12
3 PROBLEM STATEMENT AND METHODOLOGY 14
3.1 PROBLEM DEFINATION 14
3.2 METHODOLOGY 14
3.2.1 Existing system 14
3.2.2 Proposed system 14
3.3 SYSTEM ARCHITECTURE 15
3.4 UML DIAGRAMS 16
3.4.1 Use case Diagram 16
3.4.2 Class Diagram 17
4 SYSTEM IMPLEMENTATION 18
4.1 MODULES DESCRIPTION 18

6|Page
4.2 Sample Query 19

4.3 Sample Code 19

4.3.1 Sample Code On Register Form 19

4.3.2 Sample Code On Login Form 28

4.3.2 Sample Code On Player Searching Form 35

5 RESULTS AND DISCUSSION 40


5.1 Output Screenshots with Explanation 40

5.1.1 Register Form 40


5.1.2 Login form 41
5.1.3 Player Searching Form 42
5.1.4 SQL Database 42
5.2 Output Analysis 43
6 CONCLUSION AND FUTURE SCOPE 44
6.1 Conclusion 44
6.2 Future Scope 44

7 References 45

7|Page
LIST OF FIGURES

FIGURE NO. TITLE PAGE NO.


3.4 Architecture Diagram 15

3.5.1 Use Case Diagram 16

3.5.2 Class Diagram 17

5.1.1 Register Form 40

5.1.2 Login Form 41

5.1.3 Player Searching Form 42

5.1.4 SQL Database 42

5.2 Performance Graph 43

8|Page
LIST OF ABBREVIATIONS

SQL - Structured Query Language

ICC - International Cricket Council

ODI - One Day International

T20 - Twenty over cricket

IPL- Indian Premier League

9|Page
CHAPTER 1
INTRODUCTION

1.1Introduction:

“Statistical report on cricket players” name suggests that total details on cricket
players namely player name, age, country, batting style, bowling style, balls faced, runs scored,
etc. Likewise player details viewers can see each format. Statistics means collection, analysis,
interpretation, presentation and organisation of data.In this statistics is used collect the data of
player in presentation form.
In cricket each team will play 11 members and officially 15 countries are recognized by
ICC(International Cricket Council). The ICC is the international governing body of cricket. ICC
will conduct all trophies including worldcup etc.
The Theme of the project is to provide the complete details of staticallyreports. The report will
provide information of
1. Country
2. Player Details

By entering the data of each match, we can retrieve it and to see the performance of the team and
the players in the tour and also the winning rate can be calculated. Graphical representation of
BAR diagram is used in therepresentation of the RUNS and CAREER GROWTH of a player, so
that the viewer can understand those very easily.

1.2 Objective of the Problem:

The objective of theproject is to provide the complete details of statistical reports.The


report will provide information of

1. Country details
2. Player Details likename, age, country, batting style, bowling style, balls faced, runs scored
etc.

The modules of this project are:

1. Country Detail Entry


2. Match Detail Entry

10 | P a g e
3. Runs Detail Entry
4. Player Wise Detail Entry
5. Match wise Comparison

1.3 Scope of the Project:

The scope of the project to give graphical presentation of player career growth and
country detail entry, match detail entry, runs detail entry, player detail entry etc.

The modules of this project are:

1. Country Detail Entry


2. Match Detail Entry
3. Runs Detail Entry
4. Player rankings Detail Entry
5. Match wise Comparison
1. Country Detail Entry:

In this module country details are adding, officially ICC announced that 15 major
countries for cricket game namely India, Australia, New Zealand,

South Africa, Pakistan, West Indices, Netherlands, Scotland, England, Nepal, Canada, Kenya,
Bangladesh, Sri Lanka, Afghanistan.

2. Match Detail Entry:


In this module match details are adding like schedule planning.for example match
held between England and India .Likewise all match details are storing.
3. Runs Detail Entry:
In this module runs of each player adding like test runs, ODI runs, t20 runs etc.
For example virat kohil runs in test runs is 5890, ODI runs 9870, t20 runs 2004.
4. Player rankings Detail Entry:
In this module runs of each player adding like test rankings, odi rankings, t20
rankings etc. For example virat kohil in test ranking is 2,odi ranking is 1, t20 ranking is 3

11 | P a g e
CHAPTER 2
LITERATURE SURVEY

TITLE 1: CRICKET DATABASE MANAGEMENT SYSTEM


AUTHOR: RAJ KUMAR
YEAR: 2015
DESCRIPTION:
The cricket database is to provide the complete information of the National and
International Cricket statistics. The information is available Country wise, and Player wise. The
project have following Master Screens.
 Country
 Player Details
 Team Members
 Matches
By entering the data of the each match. We can get all type of reports instantly. Which will be
useful to call back history of each player, Also the team performance in each match? We can get
a report on numbers of matches win, and last.

Graphical Display of the data is also provided, so one get graph instantly whenever it is required.
We are using bar graphs here. In future we can make in many types. The bar graphs are provided
to so Runs scored by each player in match. The bar Graphs also provided for each player to so
his performance in all matches he played. So graphs helps to analyze the information faster also
it is attractive compare to the data display.This project is very use for Cricket match broadcasters
to get information quickly. Also for Cricket lovers who very much interested in Cricket
Statistics.
The project is written in Visual Basic 6.0 with ADO (Activex Data Objects), The back end for
the project is MS Access. The project is designed very user friendly such that even people who
knows only the basic operation of the computer can use this software. So no technical expertise
is required to use this software.

12 | P a g e
.MERITS:

1.In this matches detail entry comparison is implemented..


2.As well as player comparison also implemented using MS Access.


TITLE 2: CRICKET CLUB DATABASE MANAGEMENT

AUTHOR: AKIRA RANTA, Md.SOHEL.


YEAR: 2015

DESCRIPTION:

A web project for managing a cricket club. This software system consists of various online
booking and management functionaries needed by a cricket club. It consists of ground bookings,
member registrations, notice posting, member registration, batch registration and more features.
The software system is designed to efficiently manage and maintain the functioning on a cricket
club. The project consists of the following features:

 Ground Booking: The user may fill and apply for club ground booking using an online
form. Once the admin approves this the ground is booked accordingly.
 Member Registration: People may register for the club membership.
 Batch Registration: People may register for various cricket training batches through the
website contact form.
 Notices: Recent notices can be seen on the start page as they are posted by the admin.
 Admin Login: The project consists of an admin panel. Admin may approve and
disapprove various ground booking requests, may check various members of the club and
also people registered for various batches.

MERITS:

1. in this project web is implemented for using application.


2. Booking system is implemented in this project.

13 | P a g e
CHAPTER 3

PROBLEM STATEMENT AND METHODOLOGY

3.1 PROBLEM DEFINATION


The problemof the project is to provide the complete information of the National and InternationalCricket
Playerstatistics. The information is available Country wise, and Player wise. The project have following
attributes.
 Country
 Player Details
 Team Members
 Matches
By entering the data of the each match. We can get all type of reports instantly, fans
are mainly interested in statistical reports on cricket players.

3.2 METHODOLOGY

3.2.1 Existing System

There are so many existing systems namely cricket database management, cricket club
database management. In cricket club database management has more drawbacks are:
1. It is used in online mode only.
2. It is difficult to use by non-technical persons.
3. In this they shown only cricket game rules, teams, grounds.
4. It involves several factors such asdifferent stakeholders, financial /economical,
collection &transport, etc.

3.2.2 Proposed System:

By this project ,viewers can understand statistics on cricket players easily. In this users
can access the software easily. The cricket media also use this software for taking player
analysis. According financial status , is very cheap because it was open source type software.

14 | P a g e
Advantages:

1. It is very easy to operate by non technical person.


2. In this project java is used for front end.

3. Users can use in offline mode also.

3.3 SYSTEM ARCHITECTURE

E-R diagram:

System architecture

15 | P a g e
3.4 UML DIAGRAMS

3.4.1 Use case Diagram


A use case illustrates a unit of performance furnished through the system. The principal
cause of the use-case design is to assist improvement groups visualize the practical necessities of
a system, along with the relationship of "actors" (human beings who will have interaction with
the system) to imperative processes, as well as the relationships amongst one of a kind use cases.
The use case has two actors: user and server. User offers the image as input and server performs
the operation.

Figure 3.5.1: Use Case Diagram

16 | P a g e
3.4.2Class Diagram
The class diagram indicates how the unique entities (people, things, and data) relate to
each other; in different words, it indicates the static constructions of the system. A class diagram
can be used to show logical classes. Class diagrams can additionally be used to exhibit
implementation classes, which are the things that programmers generally deal with. A class is
depicted on the category layout as a rectangle with three horizontal sections, as proven in above
figure. The higher area indicates the class's name; the centre area consists of the class's attributes;
and the decrease area carries the class's operations (or "methods"). The design has 5 primary
training which provide the attributes and operations used in every class.

Figure 3.5.2: Class Diagram

17 | P a g e
CHAPTER 4
SYSTEM IMPLEMENTATION
4.1MODULES DESCRIPTION

The modules of this project are:

1. Country Detail Entry


2. Match Detail Entry
3. Runs Detail Entry
4. Player rankings Detail Entry
5. Match wise Comparison

1. Country Detail Entry:

In this module country details are adding, officially ICC announced that 15 major
countries for cricket game namely India, Australia, NewZealand, South Africa, Pakistan,
West Indices, Netherlands, Scotland, England, Nepal, Canada, Kenya, Bangladesh, Sri
Lanka, and Afghanistan.

2. Match Detail Entry:

In this module match details are adding like schedule planning. For example match held
between England and India .Likewise all match details are storing.

3. Runs Detail Entry:


In this module runs of each player adding like test runs,ODI runs, t20 runs
etc. For example virat kohil runs in test runs is 5890, ODI runs 9870, t20 runs 2004.
4. Player rankings Detail Entry:

In this module runs of each player adding like test rankings, odi rankings, t20
rankings etc. For example virat kohil in test ranking is 2,odi ranking is 1, t20 ranking is
2.

18 | P a g e
4.2 SQL Query:
CREATE DATABASE CRICKET;

USE CRICKET;

CREATE TABLE PLAYER(playeridint,playernamevarchar(20),age


int,countryvarchar(20),battingstylevarchar(20),bowlingstylevarchar(20),testmatchesplayedint,test
inningsplayedint,testrunsint,
testfiftyint,testhundredsint,testdoublehundredsint,testtriplehundredsint,testhighestscoreint,testave
rageint,testrankingint,odimatchesplayedint,odiinningsplayedint,odirunsint,
odififtyint,odihundredsint,odidoublehundredsint,oditriplehundredsint,odihighestscoreint,odiavera
geint,odiranking int,t20matchesplayed int,t20inningsplayed int,t20runs int, t20fifty
int,t20hundreds int,t20doublehundreds int,t20triplehundreds int,t20highestscore int,t20average
int,t20ranking int)

INSERT INTO
PLAYER(playerid,playername,age,country,battingstyle,bowlingstyle,testmatchesplayed
,testinningsplayed,testruns,
testfifty,testhundreds,testdoublehundreds,testtriplehundreds,testhighestscore,testaverage
,testranking,odimatchesplayed,odiinningsplayed,odiruns, odififty
,odihundreds,odidoublehundreds,oditriplehundreds
,odihighestscore,odiaverage,odiranking,t20matchesplayed,t20inningsplayed,t20runs,
t20fifty,t20hundreds ,t20doublehundreds ,t20triplehundreds ,t20highestscore ,t20average
,t20ranking) VALUES('101','virat kohil','29','india','righthanded bat','rightarm medium',
'66','112','5554','16','21','6','0','243','54','2','208','200','9588','46','35','0','0','183','59','1','57','53','198
3','18','0','0','0','90','51','1')

4.3 SAMPLE CODE:


4.3.1 Sample code for Register form:
Import javax.swing.JFrame;

public class registerform extends javax.swing.JFrame {

public registerform() {

initComponents();

19 | P a g e
}

@SuppressWarnings("unchecked")

// <editor-fold defaultstate="collapsed" desc="Generated Code">

private void initComponents() {

jPanel3 = new javax.swing.JPanel();

jLabel1 = new javax.swing.JLabel();

jLabel2 = new javax.swing.JLabel();

jLabel3 = new javax.swing.JLabel();

jLabel4 = new javax.swing.JLabel();

jLabel5 = new javax.swing.JLabel();

jLabel6 = new javax.swing.JLabel();

jLabel7 = new javax.swing.JLabel();

jLabel8 = new javax.swing.JLabel();

jFormattedTextField1 = new javax.swing.JFormattedTextField();

jFormattedTextField2 = new javax.swing.JFormattedTextField();

jFormattedTextField3 = new javax.swing.JFormattedTextField();

jFormattedTextField4 = new javax.swing.JFormattedTextField();

jFormattedTextField5 = new javax.swing.JFormattedTextField();

jFormattedTextField6 = new javax.swing.JFormattedTextField();

jFormattedTextField7 = new javax.swing.JFormattedTextField();

jScrollPane1 = new javax.swing.JScrollPane();

jTextArea1 = new javax.swing.JTextArea();

jLabel9 = new javax.swing.JLabel();

20 | P a g e
jButtonREGISTER = new javax.swing.JButton();

jButton2 = new javax.swing.JButton();

jLabelregister = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

getContentPane().setLayout(null);

jPanel3.setBackground(new java.awt.Color(189, 195, 199));

jLabel1.setText("NAME:");

jLabel2.setText("AGE");

jLabel3.setText("DOB(DD/MM/YYYY)");

jLabel4.setText("PLACE OF DOB:");

jLabel5.setText("GENDER:");

jLabel6.setText(" FATHER'S NAME:");

jLabel7.setText("MOTHER'S NAME");

jLabel8.setText("ADDRESS:");

jFormattedTextField1.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEventevt) {

jFormattedTextField1ActionPerformed(evt);

}});

jTextArea1.setColumns(20);

jTextArea1.setRows(5);

jScrollPane1.setViewportView(jTextArea1);

jLabel9.setText(" REGISTRATION");

jButtonREGISTER.setText("REGISTER");

21 | P a g e
jButtonREGISTER.addMouseListener(new java.awt.event.MouseAdapter() {

public void mouseClicked(java.awt.event.MouseEventevt) {

jButtonREGISTERMouseClicked(evt);

});

jButtonREGISTER.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEventevt) {

jButtonREGISTERActionPerformed(evt);

});

jButton2.setText("CANCEL");

jLabelregister.setText("CLICK HERE TO LOGIN");

jLabelregister.addMouseListener(new java.awt.event.MouseAdapter() {

public void mouseClicked(java.awt.event.MouseEventevt) {

jLabelregisterMouseClicked(evt);

});

javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);


jPanel3.setLayout(jPanel3Layout);

jPanel3Layout.setHorizontalGroup(.addGap(110, 110, 110)


.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING
) .addComponent(jLabel3)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6)

22 | P a g e
.addComponent(jLabel4))

.addComponent(jLabel7)))

.addGroup(jPanel3Layout.createSequentialGroup()

.addGap(132, 132, 132)

.addComponent(jLabel8))

.addGroup(jPanel3Layout.createSequentialGroup()

.addGap(139, 139, 139)


.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING
, false)

.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING
)

.addComponent(jLabel1)

.addComponent(jLabel2))

.addGap(63, 63, 63)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

.addComponent(jFormattedTextField2)

.addComponent(jFormattedTextField1)

.addGroup(jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

.addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 166,


javax.swing.GroupLayout.PREFERRED_SIZE)

23 | P a g e
.addComponent(jFormattedTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 166,
javax.swing.GroupLayout.PREFERRED_SIZE))

.addGap(0, 0, Short.MAX_VALUE))))

.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
jPanel3Layout.createSequentialGroup()

addGap(8, 8, 8)

.addComponent(jLabel5)

.addGap(43, 43, 43)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jFormattedTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 166,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jFormattedTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 166,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jFormattedTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 166,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 275,
javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(41, 41, 41))))
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(192, 192, 192)
.addComponent(jLabel9,javax.swing.GroupLayout.PREFERRED_SIZE,194,
javax.swing.GroupLayout.PREFERRED_SIZE))

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING
)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabelregister, javax.swing.GroupLayout.PREFERRED_SIZE, 171,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
jPanel3Layout.createSequentialGroup()
24 | P a g e
.addGap(142, 142, 142)
.addComponent(jButtonREGISTER)
.addGap(85, 85, 85)
.addComponent(jButton2))))
.addContainerGap(100, Short.MAX_VALUE)) );
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
jPanel3Layout.createSequentialGroup().addGap(17, 17, 17).addComponent(jLabel9)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN
E).addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN
E).addComponent(jLabel2).addComponent(jFormattedTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(18, 18, 18)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN
E) .addComponent(jLabel3) .addComponent(jFormattedTextField3,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(23, 23, 23)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN
E).addComponent(jLabel).addComponent(jFormattedTextField4,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)).addGap(18, 18, 18)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel5)
.addComponent(jFormattedTextField5, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))

25 | P a g e
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELIN
E).addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(jFormattedTextField6,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
pack();
}// </editor-fold>

privatevoidjFormattedTextField1ActionPerformed(java.awt.event.ActionEventevt){}
private void jButtonREGISTERActionPerformed(java.awt.event.ActionEventevt) { }
private void jLabelregisterMouseClicked(java.awt.event.MouseEventevt) {
loginformlgf = new loginform();
lgf.setVisible(true);
lgf.pack();
lgf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.dispose();
}
public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {

java.util.logging.Logger.getLogger(registerform.class.getName()).log(java.util.logging.Level.SE
VERE, null, ex);

26 | P a g e
} catch (InstantiationException ex) {

java.util.logging.Logger.getLogger(registerform.class.getName()).log(java.util.logging.Level.SE
VERE, null, ex);
} catch (IllegalAccessException ex) {

java.util.logging.Logger.getLogger(registerform.class.getName()).log(java.util.logging.Level.SE
VERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {

java.util.logging.Logger.getLogger(registerform.class.getName()).log(java.util.logging.Level.SE
VERE, null, ex);
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new registerform().setVisible(true);
}
});
private javax.swing.JButton jButton2;
private javax.swing.JButtonjButtonREGISTER;
private javax.swing.JFormattedTextField jFormattedTextField1;
private javax.swing.JFormattedTextField jFormattedTextField2;
private javax.swing.JFormattedTextField jFormattedTextField3;
private javax.swing.JFormattedTextField jFormattedTextField4;
private javax.swing.JFormattedTextField jFormattedTextField5;
private javax.swing.JFormattedTextField jFormattedTextField6;
private javax.swing.JFormattedTextField jFormattedTextField7;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
27 | P a g e
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JLabeljLabelregister;
private javax.swing.JPanel jPanel3;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTextArea jTextArea1;
}
4.3.2 Sample code on Login
import javax.swing.JFrame;
public class loginform extends javax.swing.JFrame {
public loginform() {
initComponents();
this.setLocationRelativeTo(null);//center form in the screen
}
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
X = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jFormattedTextField1 = new javax.swing.JFormattedTextField();
jPasswordField1 = new javax.swing.JPasswordField();
jLabel3 = new javax.swing.JLabel();
jButtonLOGIN = new javax.swing.JButton();
jButtonCANCEL = new javax.swing.JButton();
jLabelmin = new javax.swing.JLabel();

28 | P a g e
jLabelclose = new javax.swing.JLabel();
jLabelregister = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(null);
X.setBackground(new java.awt.Color(189, 195, 199));
X.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
jLabel1.setText("USERNAME:");
jLabel2.setText(" PASSWORD:");
jFormattedTextField1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEventevt) {
jFormattedTextField1ActionPerformed(evt);
}
});
jButtonLOGIN.setText("LOGIN");
jButtonCANCEL.setText("CANCEL");
jLabelmin.setText("-");
jLabelmin.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEventevt) {
jLabelminMouseClicked(evt);
}
});
jLabelclose.setText("X");
jLabelclose.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEventevt) {
jLabelcloseMouseClicked(evt);
}
});

29 | P a g e
jLabelregister.setText("CLICK HERE CREATE A NEW ACCOUNT");
jLabelregister.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEventevt) {
jLabelregisterMouseClicked(evt);
}});
javax.swing.GroupLayoutXLayout = new javax.swing.GroupLayout(X);
X.setLayout(XLayout);
XLayout.setHorizontalGroup(
XLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
XLayout.createSequentialGroup()
.addGap(0, 117, Short.MAX_VALUE)
.addGroup(XLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(XLayout.createSequentialGroup()
.addGroup(XLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel1))
.addGap(62, 62, 62)
.addGroup(XLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 121,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, 121,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(XLayout.createSequentialGroup()
.addComponent(jButtonLOGIN)
.addGap(140, 140, 140)
.addComponent(jButtonCANCEL)))
.addGap(145, 145, 145))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
XLayout.createSequentialGroup()

30 | P a g e
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(XLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
XLayout.createSequentialGroup()
.addComponent(jLabelmin, javax.swing.GroupLayout.PREFERRED_SIZE, 18,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabelclose, javax.swing.GroupLayout.PREFERRED_SIZE, 20,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
XLayout.createSequentialGroup()
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 273,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(130, 130, 130)))).addGroup(XLayout.createSequentialGroup()
.addGap(172, 172, 172)
.addComponent(jLabelregister)
.addGap(0, 0, Short.MAX_VALUE))
);
XLayout.setVerticalGroup(
XLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(XLayout.createSequentialGroup()
.addGroup(XLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabelclose, javax.swing.GroupLayout.PREFERRED_SIZE, 55,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabelmin))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addGap(47, 47, 47)
.addGroup(XLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
31 | P a g e
.addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(27, 27, 27)
.addGroup(XLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addGroup(XLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButtonLOGIN, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButtonCANCEL, javax.swing.GroupLayout.PREFERRED_SIZE, 44,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(jLabelregister)
.addContainerGap(358, Short.MAX_VALUE))
);
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(X, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()

32 | P a g e
.addComponent(X, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
);
getContentPane().add(jPanel1);
jPanel1.setBounds(0, 0, 536, 665);
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
getContentPane().add(jPanel2);
jPanel2.setBounds(0, 683, 100, 100);
pack();
}// </editor-fold>
private void jFormattedTextField1ActionPerformed(java.awt.event.ActionEventevt) {
}
private void jLabelminMouseClicked(java.awt.event.MouseEventevt) {
this.setState(JFrame.ICONIFIED);
}
private void jLabelcloseMouseClicked(java.awt.event.MouseEventevt) {
System.exit(0);
}
private void jLabelregisterMouseClicked(java.awt.event.MouseEventevt) {

33 | P a g e
registerformrgf = new registerform();
rgf.setVisible(true);
rgf.pack();
rgf.setLocationRelativeTo(null);
rgf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.dispose();
}public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfoinfo :
javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(loginform.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(loginform.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(loginform.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(loginform.class.getName()).log(java.util.logging.Level.S
EVERE, null, ex);
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new loginform().setVisible(true);
}
});

34 | P a g e
}
// Variables declaration - do not modify
private javax.swing.JPanel X;
private javax.swing.JButtonjButtonCANCEL;
private javax.swing.JButtonjButtonLOGIN;
private javax.swing.JFormattedTextField jFormattedTextField1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabeljLabelclose;
private javax.swing.JLabeljLabelmin;
private javax.swing.JLabeljLabelregister;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPasswordField jPasswordField1;
// End of variables declaration
}
4.3.3 Sample Code Player Searching form:

import java.awt.*;

import java.awt.event.*;

import javax.swing.*;
import java.sql.*;
class player extends JFrame implements ActionListener
{
JButton search;
JPanel panel;

35 | P a g e
JLabel label1,label2;
final JTextField text1,text2;
player()
{
label1=new JLabel("playername");
label2=new JLabel("playerid");
text1=new JTextField(15);
text2=new JTextField(15);
panel=new JPanel(new GridLayout(3,2 ));
panel=new JPanel();
panel.add(label1);
panel.add(text1);
panel.add(label2);
panel.add(text2);
search = new JButton("search");
panel.add(search);
add(panel,BorderLayout.CENTER);
setTitle("ENTER PLAYER NAME");
}
public void actionPerformed(ActionEvent e)
{
}

public static void preuzmi() throws ClassNotFoundException, InstantiationException,


SQLException, IllegalAccessException
{
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con = null;

36 | P a g e
String url = "jdbc:mysql://localhost/t";
String user = "";
String password = "";

Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/CRICKET",


"root","");
Statement st = conn.createStatement();
st.executeQuery("select * from PLAYER");
ResultSet rs = st.getResultSet();
while(rs.next( )){
int pid=rs.getInt("playerid");
String str1=rs.getString("playername" );
int age=rs.getInt("age" );
String str2=rs.getString("country" );
String str3=rs.getString("battingstyle" );
String str4=rs.getString("bowlingstyle" );
int tmp= rs.getInt("testmatchesplayed" );
int tinp= rs.getInt("testinningsplayed" );
int tr=rs.getInt("testruns" );
int tf= rs.getInt("testfifty" );
int th=rs.getInt("testhundreds" );
int tdh=rs.getInt("testdoublehundreds" );
int tth=rs.getInt("testtriplehundreds" );
int ths=rs.getInt("testhighestscore" );
int ta=rs.getInt("testaverage" );
int tar=rs.getInt("testranking" );
int omp=rs.getInt("odimatchesplayed" );
int oip=rs.getInt("odiinningsplayed" );

37 | P a g e
int oar=rs.getInt("odiruns" );
int of=rs.getInt("odififty" );
int oh=rs.getInt("odihundreds" );
int odh=rs.getInt("odidoublehundreds" );
int oth=rs.getInt("oditriplehundreds" );
int ohs=rs.getInt("odihighestscore" );
int oa=rs.getInt("odiaverage" );
int or=rs.getInt("odiranking" );
int tmmp=rs.getInt("t20matchesplayed" );
int ttip=rs.getInt("t20inningsplayed" );
int tttr=rs.getInt("t20runs" );
int ttft=rs.getInt("t20fifty");
int ttht=rs.getInt("t20hundreds");
int ttdht=rs.getInt("t20doublehundreds");
int tttht=rs.getInt("t20triplehundreds");
int tthst=rs.getInt("t20highestscore");
int ttat=rs.getInt("t20average");
int ttrt=rs.getInt("t20ranking");
}
System.out.println("search");
st.close();
conn.close();
}
class playername
{
public static void main(String arg[])

38 | P a g e
{
try
{
player p=new player();
p.setSize(1000,1000);
p.setVisible(true);
}catch(Exception e)
JOptionPane.showMessageDialog(null,e.getMessage( ));
}
}
}

39 | P a g e
CHAPTER 5

5.1 OUTPUT SCREENSHOTS WITH EXPLANATION


5.1 Login Form:

Fig 5.1.1: LOGIN FORM

Explanation:

The diagram is the output which is used for authentication purpose .It is very important
for using application because non authorized persons will hack the entire software. In login
form user can get rights from server for usage purpose.

40 | P a g e
5.1.2 : Register Form :

Fig 5.1.2 Register Form


Explanation: The screenshot above is the home page where client can register here by giving
the username, password, mail id, phone number and address.

41 | P a g e
Player Searching Software Form:
Explanation:This is the client login page where he can search by uusingplayerid and player
name.

Fig 5.1.3: player searching form


SQL Database :

Fig 5.1.4: SQL Database


EXPLANATION:

The above screenshot is sql query which is players database .

42 | P a g e
5.2 OUTPUT ANALYSIS

Output Analysis is done by the comparison on existing system and proposed system.

0
playernames runs detail entry ranking detail entry

Existing Proposed

Fig 5.2 Performance Graph

43 | P a g e
CHAPTER 6

CONCLUSION AND FUTURE SCOPE


6.1 CONCLUSION
This project work is the implementation of statistical reports on cricket players. This
system assures that player details. This system also helps to monitor the fake reports and hence
can reduce the corruption in the overall management system. This increases more number of
cricket players details.It ultimately helps to know player details in cricket. Therefore, of
statistical reports on cricket players that makes the more efficient for fans.

6.2 FUTURE ENHANCEMENT

Statistical reports on cricket players helps us to know player details . Many times don’t get
bore by seeing matches besides it is very interesting matches and on that time we see statistical
reports on cricket players. . This project can avoid such situations.. To enhance it further, an
automated system can be developed which is text to speech method.

44 | P a g e
CHAPTER 7
REFERENCES
1. C. J. Date, A. Kannan and S. Swamynathan, An Introduction to Database Systems, Pearson Education,
Eighth Edition, 2009.
2. Abraham Silberschatz, Henry F. Korth and S. Sudarshan, Database System Concepts, McGraw-Hill
Education (Asia), Fifth Edition, 2006.
3. Shio Kumar Singh, Database Systems Concepts, Designs and Application, Pearson Education, Second
Edition, 2011.
4. Peter Rob and Carlos Coronel, Database Systems Design, Implementation and Management, Thomson
Learning-Course Technology, Seventh Edition, 2007.
5. Patrick O’Neil and Elizabeth O’Neil, Database Principles, Programming and Performance, Harcourt
Asia Pte. Ltd., First Edition, 2001.
6. Atul Kahate, Introduction to Database Management Systems, Pearson ...David M. Kroenke (c2002),
Database processing : ìfundamentals, design & implementationî, Prentice Hall.
7. http://www.powerasp.com/ [11/04/2002 7:30 PM]
8. http://www.csis1.leeds.ac.uk/dbmodules/module_menu.asp?module=DB32 [11/04/2002 9:32 PM]
9. http://msdn.microsoft.com/library/ [11/04/2002 11:12 PM]
10. http://www.nicats.ac.uk/using/related.htm [19/06/2002 9:15 PM]
11. Simon Bennett, Steve McRobb and Ray Farmer (2002), Object-Oriented Systems Analysis and Design
Using UML, McGraw Hill.
12. Simon Bennett, John Skelton and Ken Lunn (2001), Schaumís Outlines of UML, McGraw Hill.
13. Thomas Connolly and Carolyn Begg (2002), Database Systems: ìA Practical Approach to Design,
Implementation, and Managementî, Addison Wesley.
14. Lydia Lau (2001), COMP5050 Information Modeling (Lecture Handouts), University of Leeds- School
of Computing.
15. http://www.december.com/web/develop/design.html [28/07/2002 7:30 PM]
16. http://www.15seconds.com/faq/IIS%203.0/471.htm [23/08/2002 9:10 PM]
17. A. G. Sutcliffe (1995), Human-Computer Interface Design, Macmillan press LTD.
18. Edward Kit (1995), Software Testing in the Real World: ìImproving the Processî, Addison Wesley.
19. Philippe Kruchten (1998), The Rational Unified Process: ìAn Introductionî, Addison Wesley.

45 | P a g e

You might also like