Assignment (Session-3)
Create a JavaFX application called StudentProfileManager with the following
functionality
1. Form Section (Input Area) – use GridPane:
• Name (TextField)
• Age (TextField)
• Department (ComboBox with 3–5 hardcoded departments)
• Gender (RadioButton group)
• Add Button (Button) – adds student to a list
2. Display Section – use VBox or ListView:
• A scrollable section where each student profile is displayed as:
yaml
CopyEdit
Name: Alice | Age: 20 | Dept: CSE | Gender: Female
3. Clear Button
• Clears all fields after successful add.
• (Optional) Add a button to clear the entire student list.
Requirements:
• Use GridPane for the form layout.
• Use VBox or ListView to show student data.
• Use Event Handling with lambda expressions.
• Validate form data (e.g., show alert if any field is empty).
Study References:
• YouTube Tutorials and references
o Using GridPane to make a form -
[Link]
o Validating form data: [Link]
o Event Handling - [Link]
o ListView - [Link]
o JavaFX Complete Crash Course (This is a 4 hour video – So go through the
video chapters and skip to necessary parts particular to this assignment)
• JavaFX Layouts Documentation:
o [Link]
[Link]
o [Link]
tutorial/builtin_layouts.htm
• Oracle JavaFX Complete Documentation:
o [Link]