JavaFX Tutorial 9 - Simple Student Information System

preview_player
Показать описание
This tutorial will revisit what you have learned so far. This simple student information system uses four labels, four text fields, two buttons and one text area.

The Add button allows the user to add student information to the TextArea using the toString method to return a String that represents all information in the student object.

The Reset button simply resets the four text fields using “” or null.

Here is a simplified UML (Unified Modeling Language) class diagram of the Student class. It consists of four data fields, and matched mutator (setter) and accessor (getter) methods, and the toString method.

Student
--------------------------------------------------
-Firstname: String
-lastname: String
-major: String
-age: int
--------------------------------------------------
+setFirstname(String firstname): void
+getFirstname(): String
+setLastname(String lastname): void
+getLastname(): String
+setMajor(String major): void
+getMajor(): String
+setAge(int age): void
+getAge(): int
+toString(): String
--------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Ken - I am working on my final project for Java. I've been overwhelmed trying to get everything done on time with life and other classes as well. We did not cover scene builder in class. I was feeling overwhelmed last night trying to make everything work. I woke up at 3am this morning to start working again and watched this video and I'm now over the hill and making my way towards the finish line. I'm sending you a hug. My day is brighter because of you! Thank you so much!

jenniferstephenson
visit shbcf.ru