165 Java Record Ex13
165 Java Record Ex13
EX.NO: 13
DATE:
STUDENT MANAGEMENT APP
QUESTION:
Develop Student management application using JavaFX controls, layouts and menus
AIM:
To develop a Student management application using JavaFX controls, layouts
and menus
ALGORITHM:
1. Initialization:
1.1. Initialize the GUI components including labels, text fields, buttons, and
table view.
1.2. Set up event handlers for button clicks (e.g., Add New, Update,
Delete, Logout).
2. Add New Student:
2.1. When the "+ Add New Student" button is clicked, open the "add_student"
form. 2.2.Allow the user to input student details including name, age, grade, and
city.
2.3. Validate the input fields to ensure they are not empty.
2.4. If all fields are filled, add the new student details to the
database. 2.5.Display a success message if the student is added
successfully.
2.6.Reset the input fields for the next entry.
3. Update Student Details:
3.1. When a row in the table view is selected and the "Update" button is
clicked, populate the "student_detail-form" with the selected student's
information.
3.2. Allow the user to edit the student details.
3.3.Validate the input fields to ensure they are not
empty.
3.4.If all fields are filled, update the student details in the database.
3.5.Display a success message if the update is successful.
3.6.Refresh the table view to reflect the changes.
4. Delete Student:
4.1. When a row in the table view is selected and the "Delete" button is
clicked, prompt the user for confirmation.
4.2. If the user confirms, delete the selected student's details from the
database. 4.3.Display a success message if the deletion is successful.
4.4.Refresh the table view to reflect the changes.
5. View Student Details:
5.1. Populate the table view with existing student details from the database
upon application startup.
5.2. Display student details including ID, user ID, name, age, grade, and city.
6. Logout:
#student_detail-form
#add_student
RESULT:
Thus the program to develop a Student management application using
JavaFX controls, layouts and menus, has been executed successfully.