Add listener for changes to rocket to component analysis dialog

This commit is contained in:
JoePfeiffer 2022-04-29 11:00:54 -06:00
parent c5f4b401c3
commit 4eacd1e659

View File

@ -418,7 +418,8 @@ public class ComponentAnalysisDialog extends JDialog implements StateChangeListe
// Add the data updater to listen to changes in aoa and theta
// Add the data updater to listen to changes
rkt.addChangeListener(this);
mach.addChangeListener(this);
theta.addChangeListener(this);
aoa.addChangeListener(this);
@ -434,9 +435,10 @@ public class ComponentAnalysisDialog extends JDialog implements StateChangeListe
theta.setValue(initTheta);
//System.out.println("Closing method called: " + this);
rkt.removeChangeListener(ComponentAnalysisDialog.this);
mach.removeChangeListener(ComponentAnalysisDialog.this);
theta.removeChangeListener(ComponentAnalysisDialog.this);
aoa.removeChangeListener(ComponentAnalysisDialog.this);
mach.removeChangeListener(ComponentAnalysisDialog.this);
roll.removeChangeListener(ComponentAnalysisDialog.this);
//System.out.println("SETTING NAN VALUES");
rocketPanel.setCPAOA(Double.NaN);