diff --git a/src/main/java/seedu/address/ui/StudentListPanel.java b/src/main/java/seedu/address/ui/StudentListPanel.java index e05d388efa1..6993cb04e42 100644 --- a/src/main/java/seedu/address/ui/StudentListPanel.java +++ b/src/main/java/seedu/address/ui/StudentListPanel.java @@ -29,6 +29,7 @@ public StudentListPanel(MainWindow mainWindow, ObservableList studentLi this.mainWindow = mainWindow; studentListView.setItems(studentList); studentListView.setCellFactory(listView -> { + //Solution below inspired by group AY2023/24-T16-1 StudentListViewCell studentCells = new StudentListViewCell(); studentCells.setOnMouseClicked(mouseEvent -> { StudentListViewCell clicked = (StudentListViewCell) mouseEvent.getSource();