SlideShare a Scribd company logo
2
Most read
Create a student record management system using linked list and queue using Java language and
database to save files and GUI Java swing to create background and also use HTML.
With the following properties
A . register students(assume each students has ID, first name ,last name and middle name)
B.register students with courses(course no ,course title crh)
C.able to maintain grade on which course they are registered
d.searches students by ID displays if found
E.searches by course name
F. sorts student name in alphabetical order
G.displays the details of all students
H.Deletes a student by id
I.Deletes a course by courseNo
J. Handles errors in informative ways .
Solution
public class StudentRegistration extends JFrame implements ActionListener{
JLabel idLabel, fnameLabel, midnameLabel, lastnameLabel, courseLabel;
JTextField idField, fnameField, midnameField, lastnameField, courseField;
JButton registerButton;
JPanel panel;
List list = new ArrayList();
StudentRegistration() {
setSize(800, 400);
setLayout(null);
idLabel = new JLabel("ID");
fnameLabel = new JLabel("First Name");
midnameLabel = new JLabel("Mid Name");
lastnameLabel = new JLabel("Last Name");
courseLabel = new JLabel("Course");
// Defining ID field
idField = new JTextField();
idField.addKeyListener(new KeyAdapter() {
public void keyTyped(KeyEvent e) {
char c = e.getKeyChar();
}
});
// Defining Name field
fnameField = new JTextField();
fnameField.addKeyListener(new KeyAdapter() {
public void keyTyped(KeyEvent e) {
char c = e.getKeyChar();
}
});
registerButton
= new JButton("Register");
registerButton.addActionListener(this);
add(idLabel);
add(fnameLabel);
add(midnameLabel);
add(lastnameLabel);
add(courseLabel);
add(idField);
add(fnameField);
add(midnameField);
add(lastnameField);
add(courseField);
add(registerButton);
list.add(new User(idField.getText(), fnameField.getText(),midnameField.getText(),
lastnameField.getText(),courseField.getText()));
saveValues();
JOptionPane.showMessageDialog(this,
"Student Successfully Registered");
}
}
public void saveValues() throws SQLException {
User str = list.get(list.size()-1);
Connection connection = null;
Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://localhost/testdb";
String user = "root";
String password = "";
connection = DriverManager.getConnection(url,
user, password);
Statement stmt = connection.createStatement();
String sql = "INSERT INTO students(str.fname,str.midname,str.lastname,str.course) ";
stmt.execute(sql);
}
public static void
main(String[] args) {
new StudentRegistration();
}
}

More Related Content

PDF
Create a student record management system With JAVAusing linked li.pdf
DOC
Fee managment system
PDF
Java Assignment Help
PDF
student application form Java Netbeans
PDF
Java File
PDF
Take Note These questions requires diagrams.Scenario Sweetbriar .pdf
PDF
Modify this code to change the underlying data structure to .pdf
PDF
MaintainStaffTable
Create a student record management system With JAVAusing linked li.pdf
Fee managment system
Java Assignment Help
student application form Java Netbeans
Java File
Take Note These questions requires diagrams.Scenario Sweetbriar .pdf
Modify this code to change the underlying data structure to .pdf
MaintainStaffTable

Similar to Create a student record management system using linked list and queu.pdf (20)

PDF
Create a Code that will add an Add, Edi, and Delete button to the GU.pdf
PDF
java stream class/java stream class/java stream class .pdf
PPTX
Students management system
DOCX
Net Beans Codes for Student Portal
PDF
Im getting List Full when I try to add 2nd student.Driver..pdf
PPTX
College management system.pptx
PDF
Java Quiz Application .pdf
PDF
How do I add a ComboBox to this, underneath Enter Student ID tha.pdf
PDF
Write an application containing three parallel arrays that hold 10 e.pdf
DOC
Project 4 1/tutorialoutlet
PDF
1. Section1.- Populating the list of persons on the person listing f.pdf
PDF
1. Section1.- Populating the list of persons on the person listing.pdf
PDF
3. Section 3 � Complete functionality on listing screen (1.5 marks.pdf
PDF
29. Code an application program that keeps track of student informat.pdf
PDF
create a Presentations in this file and minimum slide in 20 pages
DOCX
Student report
DOCX
COSC 2436 – PROJECT Contents TITLE ..................docx
PDF
PLEASE HELP ME !!IT IS Due Tonight ;(!i have to submit it before.pdf
PPTX
Powerpoint for thesis
PDF
This is the official tutorial from Oracle.httpdocs.oracle.comj.pdf
Create a Code that will add an Add, Edi, and Delete button to the GU.pdf
java stream class/java stream class/java stream class .pdf
Students management system
Net Beans Codes for Student Portal
Im getting List Full when I try to add 2nd student.Driver..pdf
College management system.pptx
Java Quiz Application .pdf
How do I add a ComboBox to this, underneath Enter Student ID tha.pdf
Write an application containing three parallel arrays that hold 10 e.pdf
Project 4 1/tutorialoutlet
1. Section1.- Populating the list of persons on the person listing f.pdf
1. Section1.- Populating the list of persons on the person listing.pdf
3. Section 3 � Complete functionality on listing screen (1.5 marks.pdf
29. Code an application program that keeps track of student informat.pdf
create a Presentations in this file and minimum slide in 20 pages
Student report
COSC 2436 – PROJECT Contents TITLE ..................docx
PLEASE HELP ME !!IT IS Due Tonight ;(!i have to submit it before.pdf
Powerpoint for thesis
This is the official tutorial from Oracle.httpdocs.oracle.comj.pdf
Ad

More from info309708 (20)

PDF
Pluto has been hard to measure from Earth because of its atmosphere. .pdf
PDF
Loops and ArraysObjectivesArrays are a series of elements consi.pdf
PDF
Modern Database Management 11th Edition by Jeffrey A. HofferUse th.pdf
PDF
Let f X Y be a function.True or FalseA sufficient condition for f .pdf
PDF
Its your third week on the job at Panache Inc. Last week, you made.pdf
PDF
In JAVA Write a program that uses a two-dimensional array to sto.pdf
PDF
How do CCMI model help with the improvements and comparison of the p.pdf
PDF
How would you implement a node classs and an edge class to create .pdf
PDF
How do you evaluate your own global mind set levelsSolutionAN.pdf
PDF
Here are two datasetsDataset A 64 65 66 68 70 71 72Dataset B .pdf
PDF
Getting StartedCreate a class called Lab8. Use the same setup for .pdf
PDF
For this homework, you will develop a class called VendingMachine th.pdf
PDF
Discuss what is SSH and the advantages and disadvantages of using it.pdf
PDF
Describe the differences between the three major physical connection .pdf
PDF
Coca-Cola companyStrategic Goals and Objectivesi. Objectives are.pdf
PDF
C programming. Answer question only in C code Ninth Deletion with B.pdf
PDF
Biology LabThe poisonous wastes of diptheria germs are called (A).pdf
PDF
Aside from the expansion of industrial capitalism, what factors affe.pdf
PDF
Yates (2009) notes that unions have a purpose broader than serving t.pdf
PDF
write a C program for blinking light using function make sure it.pdf
Pluto has been hard to measure from Earth because of its atmosphere. .pdf
Loops and ArraysObjectivesArrays are a series of elements consi.pdf
Modern Database Management 11th Edition by Jeffrey A. HofferUse th.pdf
Let f X Y be a function.True or FalseA sufficient condition for f .pdf
Its your third week on the job at Panache Inc. Last week, you made.pdf
In JAVA Write a program that uses a two-dimensional array to sto.pdf
How do CCMI model help with the improvements and comparison of the p.pdf
How would you implement a node classs and an edge class to create .pdf
How do you evaluate your own global mind set levelsSolutionAN.pdf
Here are two datasetsDataset A 64 65 66 68 70 71 72Dataset B .pdf
Getting StartedCreate a class called Lab8. Use the same setup for .pdf
For this homework, you will develop a class called VendingMachine th.pdf
Discuss what is SSH and the advantages and disadvantages of using it.pdf
Describe the differences between the three major physical connection .pdf
Coca-Cola companyStrategic Goals and Objectivesi. Objectives are.pdf
C programming. Answer question only in C code Ninth Deletion with B.pdf
Biology LabThe poisonous wastes of diptheria germs are called (A).pdf
Aside from the expansion of industrial capitalism, what factors affe.pdf
Yates (2009) notes that unions have a purpose broader than serving t.pdf
write a C program for blinking light using function make sure it.pdf
Ad

Recently uploaded (20)

PPTX
Lesson notes of climatology university.
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
01-Introduction-to-Information-Management.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Cell Structure & Organelles in detailed.
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
GDM (1) (1).pptx small presentation for students
Lesson notes of climatology university.
Pharmacology of Heart Failure /Pharmacotherapy of CHF
01-Introduction-to-Information-Management.pdf
Supply Chain Operations Speaking Notes -ICLT Program
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Module 4: Burden of Disease Tutorial Slides S2 2025
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Anesthesia in Laparoscopic Surgery in India
Cell Structure & Organelles in detailed.
STATICS OF THE RIGID BODIES Hibbelers.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Pharma ospi slides which help in ospi learning
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
VCE English Exam - Section C Student Revision Booklet
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Final Presentation General Medicine 03-08-2024.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
RMMM.pdf make it easy to upload and study
O5-L3 Freight Transport Ops (International) V1.pdf
GDM (1) (1).pptx small presentation for students

Create a student record management system using linked list and queu.pdf

  • 1. Create a student record management system using linked list and queue using Java language and database to save files and GUI Java swing to create background and also use HTML. With the following properties A . register students(assume each students has ID, first name ,last name and middle name) B.register students with courses(course no ,course title crh) C.able to maintain grade on which course they are registered d.searches students by ID displays if found E.searches by course name F. sorts student name in alphabetical order G.displays the details of all students H.Deletes a student by id I.Deletes a course by courseNo J. Handles errors in informative ways . Solution public class StudentRegistration extends JFrame implements ActionListener{ JLabel idLabel, fnameLabel, midnameLabel, lastnameLabel, courseLabel; JTextField idField, fnameField, midnameField, lastnameField, courseField; JButton registerButton; JPanel panel; List list = new ArrayList(); StudentRegistration() { setSize(800, 400); setLayout(null); idLabel = new JLabel("ID"); fnameLabel = new JLabel("First Name"); midnameLabel = new JLabel("Mid Name"); lastnameLabel = new JLabel("Last Name"); courseLabel = new JLabel("Course"); // Defining ID field
  • 2. idField = new JTextField(); idField.addKeyListener(new KeyAdapter() { public void keyTyped(KeyEvent e) { char c = e.getKeyChar(); } }); // Defining Name field fnameField = new JTextField(); fnameField.addKeyListener(new KeyAdapter() { public void keyTyped(KeyEvent e) { char c = e.getKeyChar(); } }); registerButton = new JButton("Register"); registerButton.addActionListener(this); add(idLabel); add(fnameLabel); add(midnameLabel); add(lastnameLabel); add(courseLabel); add(idField); add(fnameField); add(midnameField); add(lastnameField); add(courseField);
  • 3. add(registerButton); list.add(new User(idField.getText(), fnameField.getText(),midnameField.getText(), lastnameField.getText(),courseField.getText())); saveValues(); JOptionPane.showMessageDialog(this, "Student Successfully Registered"); } } public void saveValues() throws SQLException { User str = list.get(list.size()-1); Connection connection = null; Class.forName("com.mysql.jdbc.Driver"); String url = "jdbc:mysql://localhost/testdb"; String user = "root"; String password = ""; connection = DriverManager.getConnection(url, user, password); Statement stmt = connection.createStatement(); String sql = "INSERT INTO students(str.fname,str.midname,str.lastname,str.course) "; stmt.execute(sql); } public static void main(String[] args) { new StudentRegistration(); }
  • 4. }