Disable show errors checkbox instead of hide
This commit is contained in:
parent
49cdbe5426
commit
938fc6cc93
@ -123,7 +123,7 @@ public class SimulationPlotDialog extends JDialog {
|
|||||||
@Override
|
@Override
|
||||||
public void itemStateChanged(ItemEvent e) {
|
public void itemStateChanged(ItemEvent e) {
|
||||||
int selectedStage = stageSelection.getSelectedIndex() - 1;
|
int selectedStage = stageSelection.getSelectedIndex() - 1;
|
||||||
checkErrors.setVisible(selectedStage == -1 ? simulation.hasErrors() : simulation.hasErrors(selectedStage));
|
checkErrors.setEnabled(selectedStage == -1 ? simulation.hasErrors() : simulation.hasErrors(selectedStage));
|
||||||
myPlot.setShowBranch(selectedStage);
|
myPlot.setShowBranch(selectedStage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user