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