Merge pull request #6005 from gdicristofaro/6512-reportSingleSelect

6512 report single select
This commit is contained in:
Richard Cordovano 2020-06-29 17:59:49 -04:00 committed by GitHub
commit 1d38eec7c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,6 +151,7 @@ final class ReportVisualPanel1 extends JPanel implements ListSelectionListener {
}
modulesJList.getSelectionModel().addListSelectionListener(this);
modulesJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
modulesJList.setCellRenderer(new ModuleCellRenderer());
modulesJList.setListData(modules.toArray(new ReportModule[modules.size()]));
modulesJList.setSelectedIndex(selectedIndex);