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