click Offline toolbar

Make it show option to show only event clicks even if there are no click
classifications
This commit is contained in:
Douglas Gillespie 2022-12-12 17:01:47 +00:00
parent fc9c70ad78
commit d27e4fb19f

View File

@ -164,15 +164,14 @@ public class OfflineToolbar {
return;
}
String[] speciesList = clickId.getSpeciesList();
if (speciesList == null || speciesList.length == 0) {
return;
}
speciesButtons = new JCheckBox[speciesList.length];
for (int i = 0; i < speciesList.length; i++) {
speciesButtons[i] = new SpeciesCheckBox(speciesList[i] + space);
c.gridx++;
speciesBar.add(speciesButtons[i]);
speciesButtons[i].addActionListener(showClicks);
if (speciesList != null) {
speciesButtons = new JCheckBox[speciesList.length];
for (int i = 0; i < speciesList.length; i++) {
speciesButtons[i] = new SpeciesCheckBox(speciesList[i] + space);
c.gridx++;
speciesBar.add(speciesButtons[i]);
speciesButtons[i].addActionListener(showClicks);
}
}
c.gridx++;
speciesBar.add(andOrSelection = new JComboBox<String>());