ajliu / CS2340-Project

0 stars 0 forks source link

M3: Changing the Controller #6

Closed smagesh3 closed 7 years ago

smagesh3 commented 7 years ago

Add items to the StudentEditController class (since this is the controller for our view).

  1. Add an @FXML reference to the widgets you added for class standing.
  2. Edit the initialize method to handle any start up code you need.
  3. Edit the setStudent method to set your widget to a default value
  4. Edit the OK button press to pull the information out of your new widget and put into the student instance.
  5. If you used a free text entry field, you will need to edit the isInputValid method to check that a valid class was entered. Otherwise, don't do anything

Now run the app. You should be able to enter new students and their standing and see it reflected in the UI. If not, then check your code through the complete stack.