mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-29 02:22:22 +00:00
Bug fix to UI
This commit is contained in:
parent
3b7d043b73
commit
0578b35408
@ -50,10 +50,10 @@ public class StandardClassifierPane extends SettingsPane<StandardClassifierPara
|
|||||||
|
|
||||||
final int ii = i;
|
final int ii = i;
|
||||||
enableSwitch[i].selectedProperty().addListener((obsVal, oldVal, newVal)->{
|
enableSwitch[i].selectedProperty().addListener((obsVal, oldVal, newVal)->{
|
||||||
standardClassifier.getClassifiers().get(ii).getCTClassifierGraphics().getCTClassifierPane().setDisable(!enableSwitch[ii].isSelected());
|
disableClassifierPane(ii);
|
||||||
labels[ii].setDisable(!enableSwitch[ii].isSelected());
|
|
||||||
});
|
});
|
||||||
|
disableClassifierPane(ii); //need to call here or else when the pane is first created stuff is not disabled.
|
||||||
|
|
||||||
PamHBox hBox = new PamHBox();
|
PamHBox hBox = new PamHBox();
|
||||||
hBox.setSpacing(5);
|
hBox.setSpacing(5);
|
||||||
|
|
||||||
@ -63,7 +63,9 @@ public class StandardClassifierPane extends SettingsPane<StandardClassifierPara
|
|||||||
}
|
}
|
||||||
|
|
||||||
return vBox;
|
return vBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void disableClassifierPane(int ii) {
|
private void disableClassifierPane(int ii) {
|
||||||
standardClassifier.getClassifiers().get(ii).getCTClassifierGraphics().getCTClassifierPane().setDisable(!enableSwitch[ii].isSelected());
|
standardClassifier.getClassifiers().get(ii).getCTClassifierGraphics().getCTClassifierPane().setDisable(!enableSwitch[ii].isSelected());
|
||||||
|
Loading…
Reference in New Issue
Block a user