private void onEditButtonClick() { Student student = getSelectedIndex("Edit"); if (student == null) { return; } AddStudentWindow addStudentWindow = new AddStudentWindow(student); MainWindow.runWindow(addStudentWindow); setStudentsComboBox(); }
private void onAddButtonClick() { AddStudentWindow addStudentWindow = new AddStudentWindow(); MainWindow.runWindow(addStudentWindow); setStudentsComboBox(); }