100% found this document useful (2 votes)
364 views20 pages

Sports Java Project Converted JAVA 1234

The document describes the implementation of a registration application for storing sports details using a graphical user interface (GUI). Key points: - The application allows users to register by entering name, ID number, gender, address and selecting a sport from a dropdown. - It uses Java Swing components like JFrame, JLabel, JTextField, JRadioButton, JTextArea etc to build the GUI. - On submit, the data is displayed in a non-editable text area if the terms and conditions checkbox is selected, otherwise an error message is shown. - A reset button clears all the form fields. The data is not saved to any database.

Uploaded by

Sriram Yanamaddi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
364 views20 pages

Sports Java Project Converted JAVA 1234

The document describes the implementation of a registration application for storing sports details using a graphical user interface (GUI). Key points: - The application allows users to register by entering name, ID number, gender, address and selecting a sport from a dropdown. - It uses Java Swing components like JFrame, JLabel, JTextField, JRadioButton, JTextArea etc to build the GUI. - On submit, the data is displayed in a non-editable text area if the terms and conditions checkbox is selected, otherwise an error message is shown. - A reset button clears all the form fields. The data is not saved to any database.

Uploaded by

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

K L UNIVERSITY

FRESHMAN ENGINEERING
DEPARTMENT
A Project Based Lab Report

On

STORING SPORTS DETAILS

SUBMITTED BY:

I.D NUMBER NAME

2200032182 Y Sriram

UNDER THE ESTEEMED GUIDANCE OF

DR. ASHISH
ASST.PROFESSOR

KL UNIVERSITY
Green fields, Vaddeswaram – 522 502
Guntur Dt., AP, India.
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

CERTIFICATE

This is to certify that the project based laboratory report entitled


“STORING SPORTS DETAILS ” submitted by by Y.Sriram bearing Regd.No
2200032182to the Department OF COMPUTER SCIENCE AND ENGINEERING , KL
University in partial fulfillment of the requirements for the completion of a project
based Laboratory in “CTOOD” course in I B Tech II Semester, is a bonafide record of
the work carried out by him/her under my supervision during the academic year
2022 – 2023.

PROJECTSUPERVISOR HEAD OF THE

DR. ASHISH DR.D.HARITHA


ACKNOWLEDGEMENTS

It is great pleasure for me to express my gratitude to our honorable


President Sri. Koneru Satyanarayana, for giving the opportunity and
platform with facilities in accomplishing the project based laboratory
report.

I express the sincere gratitude to our Director Dr. A. Jagdeesh for


his administration towards our academic growth.

I express sincere gratitude to our Coordinator and HOD-BES Dr.


D.Haritha for her leadership and constant motivation provided in
successful completion of our academic semester. I record it as my
privilege to deeply thank for providing us the efficient faculty and
facilities to make our ideas into reality.

I express my sincere thanks to our project supervisor


DR.D.HARITHA for her novel association of ideas, encouragement,
appreciation and intellectual zeal which motivated us to venture this
project successfully.

Finally, it is pleased to acknowledge the indebtedness to all those


who devoted themselves directly or indirectly to make this project report
success.
ABSTRACT

CREATING A REGISTRATION APPLICATION

BY USING GRAPHICAL USER


INTERFACE (GUI)

The project name is preparing an application by using GUI


(Graphical User Interface). Here Kartish is the head of the games
and sports. He wants to register the students who are interested
in the sports. This application should be done by using GUI. The
games are only specific, and they are baseball, volleyball,
badminton, tennis, and table tennis.

In this program we have used two different methods which


are Sports Reg and Sports Demo. The class SpoprtdReg class
contains name, blood group, gender, sport, age, and height. Here
except age and height all the remaining variables are declared in
the type String() and age is declared as int type and height is
declared in float type. In this class method setters and getters
methods also tostring() method is used for the implementation

In the public class Sport Demo we have implemented the


scanner option and we have created a new object in this method
we have used else if ladder in this question
SNO TITLE PAGENO

1 INTRODUCTION 6

2 AIM OF THE PROJECT 7

3 SOFTWARE & HARDWARE DETAILS 7

4 CLASS DIAGRAM 8

5 IMPLEMENTATION 9

6 OUTPUT/SCREENSHOTS 16,17
7 CONCLUSION 18
1. INTRODUCTION

School sport programs are currently affected by a


number of issues, including schools that focus on a single
sport ("rogue schools," "factories"); emphasis on
"nationally ranked programs," which implies national
travel during the school year; recruiting, especially for
summer basketball; increasing numbers of international
students; and threats to amateurism. International
students are often concentrated in rogue schools for
basketball and reported ages are commonly questioned.
The United States Olympic Committee (USOC) has already
foregone the rules of amateurism, and the National
Collegiate Athletic Association (NCAA) may be moving in
this direction.

High school programs generally emphasize


competition and program success rather than developing
skills for the next level of athletic competition. In contrast,
many national sport governing bodies emphasize talent
identification, development, and medals, and prefer that
talented youth be passed along to a higher level of
coaching and training than at the high school level. Talent
identification programs in many sports are not consistent
with objectives of school

sports.
2. AIM
To develop a program which stores sports details

3.SYSTEM REQUIREMENTS

SOFTWARE REQUIREMENTS:

The major software requirements of the project are as


follows:
Language: ECLLIPSE
Operating system: Windows Xp or later.

HARDWARE REQUIREMENTS:

The hardware requirements that map towards the software


are as follows:

RAM :8GB

Processor:INTEL CORE I5
4.CLASS DIAGRAM

SAMPLE

Registration Form

F:jframe
L:jlabel
C1:jcomboB
ox

Main(string[]):void
new
ActionListener()

new

ActionListener()
termStateChanged(termEvent):void
5. IMPLEMENTATION
package sample; import javax.swing.*; import java.awt.*; import

java.awt.event.*; import java.sql.*; import java.util.*; class

RegistrationForm extends JFrame implements ItemListener

{
static JFrame f; static

JLabel l; static

JComboBox c1;

public static void main(String [] args) throws Exception


{ f=newJFrame();
Container c;
JLabel title,name,mno,gender,add,res;
JTextField tname,tmno;
JRadioButton male,female; ButtonGroup
gengp;

JTextArea tadd,resadd,tout;
JCheckBox term;
JButton sub,reset;
f.setTitle("RegistrationForm");
f.setBounds(200,80,1150,700);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setResizable(false);
c=f.getContentPane();

c.setLayout(null);
title=new JLabel("RegistrationForm");

title.setFont(new
Font("Arial",Font.PLAIN,30));

title.setSize(400,30); title.setLocation(420,20);
c.add(title);

name=new JLabel("Name"); name.setFont(new


Font("Arial",Font.PLAIN,30));
name.setSize(200,30); name.setLocation(50,70);
c.add(name);
mno=new JLabel("ID Number");
mno.setFont(new

Font("Arial",Font.PLAIN,30));

mno.setSize(300,30); mno.setLocation(50,120);
c.add(mno); tname=new

JTextField();

tname.setFont(new Font("Arial",Font.PLAIN,30));
tname.setSize(120,30);
tname.setLocation(275,70);
c.add(tname); tmno= new JTextField();

tmno.setFont(new

Font("Arial",Font.PLAIN,30));

tmno.setSize(120,30);

tmno.setLocation(275,120);

c.add(tmno); gender= new


JLabel("Gender");

gender.setFont(new Font("Arial",Font.PLAIN,30));
gender.setSize(300,30);

gender.setLocation(50,170);

c.add(gender); male=new
JRadioButton("male");

male.setFont(new

Font("Arial",Font.PLAIN,30));
male.setSelected(true); male.setSize(100,20);

male.setLocation(255,170);
c.add(male);
female=new JRadioButton("female");
female.setFont(new
Font("Arial",Font.PLAIN,30));
female.setSelected(true); female.setSize(200,20);
female.setLocation(395,170);
c.add(female); gengp=new
ButtonGroup();
gengp.add(male);
gengp.add(female);
add=new
JLabel("Address");

add.setFont(new

Font("Arial",Font.PLAIN,30));
add.setSize(3500,30); add.setLocation(50,230);
c.add(add); tadd=new JTextArea();

tadd.setFont(new

Font("Arial",Font.PLAIN,30));

tadd.setSize(300,30);

tadd.setLocation(275,230);

tadd.setLineWrap(true);

c.add(tadd);
term= new JCheckBox("Accept Terms and conditions");

term.setFont(new Font("Arial",Font.PLAIN,30));

term.setSize(450,20); term.setLocation(110,320);

c.add(term);
reset=new JButton("Reset");
reset.setFont(new Font("Arial",Font.PLAIN,30));
reset.setSize(150,25);
reset.setLocation(370,410);
c.add(reset);
sub=new JButton("Submit"); sub.setFont(new
Font("Arial",Font.PLAIN,30));
sub.setSize(150,25); sub.setLocation(100,410);
c.add(sub); res=newJLabel("");

res.setFont(new

Font("Arial",Font.PLAIN,30));

res.setSize(500,30); res.setLocation(50,515);

c.add(res); resadd=new JTextArea();

resadd.setFont(new
Font("Arial",Font.PLAIN,30));

resadd.setSize(200,30);

resadd.setLocation(275,510);

c.add(resadd);

tout=new JTextArea();

tout.setFont(new
Font("Arial",Font.PLAIN,30));

tout.setSize(450,500); tout.setLocation(650,80);
tout.setLineWrap(true); tout.setEditable(false);

f.setVisible(true);
c.add(tout);
sub.addActionListener(new ActionListener()
{ public void actionPerformed(ActionEvent e)

{
if(term.isSelected())
{
String data,data1,data2,data3;

data="Name:"+tname.getText() + "\n" + "ID

Number:"+tmno.getText() + "\n";
if(male.isSelected())

data1="Gender:"+male.getText() + "\n";

else

data1="Gender:"+female.getText() + "\n";
data2="Address:"+tadd.getText()+"\n";

data3="Sports:"+c1.getSelectedItem();

tout.setText(data+data1+data2+data3);

tout.setEditable(false);

res.setText("Registration successfully....");

}
else
{ tout.setText("Please accept the terms and conditions");

}});
reset.addActionListener(newActionListener()
{ public void

actionPerformed(ActionEvent e)

{ tname.setText("");
tadd.setText("");
tmno.setText("");
res.setText("");
tout.setText("");

term.setSelected(false);
resadd.setText("");

}
});
RegistrationForm s = new RegistrationForm();
String s1[] = { "Kabaddi", "Cricket", "Volley Ball", "Basket Ball", "Hockey"
}; c1 = new
JComboBox(s1);
c1.addItemListener(s);

l = new JLabel("select your game ");


l.setForeground(Color.red);

f.add(l);
f.add(c1);
l.setSize(150,25);
l.setLocation(100,450);
c1.setSize(150,25);
c1.setLocation(100,470);
} public void itemStateChanged(ItemEvent

e)

{
}
}
6 . OUTPUTS

The above screenshot represents the details of students and which game
the had selected
7. CONCLUSION

From the above program we can store the sports details of the students
and we can store the name, id number, gender, address and the game which
the student is interested without maintaining the records which makes to enter
the details more easy the doing manually.

You might also like