Merge pull request #1317 from JoePfeiffer/fix-1302

Add listener for changes to rocket to component analysis dialog
This commit is contained in:
Joe Pfeiffer 2022-04-29 14:36:00 -06:00 committed by GitHub
commit 70ad1e9b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);