Merge pull request #1706 from SiboVG/issue-1704

[#1704] Add change listener for stage selector in component analysis
This commit is contained in:
Sibo Van Gool 2022-09-30 19:57:03 +02:00 committed by GitHub
commit 0b7d9fe0ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -49,6 +49,7 @@
# User-specific stuff: # User-specific stuff:
.idea/workspace.xml .idea/workspace.xml
.idea/tasks.xml .idea/tasks.xml
.idea/shelf
.idea/dictionaries .idea/dictionaries
.idea/vcs.xml .idea/vcs.xml
.idea/jsLibraryMappings.xml .idea/jsLibraryMappings.xml

View File

@ -171,8 +171,10 @@ public class ComponentAnalysisDialog extends JDialog implements StateChangeListe
// Stage and motor selection: // Stage and motor selection:
//// Active stages: //// Active stages:
StageSelector stageSelector = new StageSelector(rkt);
rkt.addChangeListener(stageSelector);
panel.add(new JLabel(trans.get("componentanalysisdlg.lbl.activestages")), "spanx, split, gapafter rel"); panel.add(new JLabel(trans.get("componentanalysisdlg.lbl.activestages")), "spanx, split, gapafter rel");
panel.add(new StageSelector( rkt), "gapafter paragraph"); panel.add(stageSelector, "gapafter paragraph");
//// Motor configuration: //// Motor configuration:
JLabel label = new JLabel(trans.get("componentanalysisdlg.lbl.motorconf")); JLabel label = new JLabel(trans.get("componentanalysisdlg.lbl.motorconf"));