//Save button handler, validates user input then it will update the model and the database. public void saveButton() { if (Validation()) { UpdateCategoryModel(); UpdateCategoryInDatabase(); screen.Close(); } }