diff --git a/src/main/java/edu/kit/kastel/sdq/intelligrade/extensions/guis/AnnotationsListPanel.java b/src/main/java/edu/kit/kastel/sdq/intelligrade/extensions/guis/AnnotationsListPanel.java index ed753bf..4c14cd2 100644 --- a/src/main/java/edu/kit/kastel/sdq/intelligrade/extensions/guis/AnnotationsListPanel.java +++ b/src/main/java/edu/kit/kastel/sdq/intelligrade/extensions/guis/AnnotationsListPanel.java @@ -133,6 +133,7 @@ public void selectAnnotation(Annotation annotation) { if (row >= 0) { int viewRow = table.convertRowIndexToView(row); table.setRowSelectionInterval(viewRow, viewRow); + table.scrollRectToVisible(table.getCellRect(viewRow, 0, true)); } }