aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/gui/settings
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2014-05-22 07:44:52 +0100
committerEduardo Pedroni <ep625@york.ac.uk>2014-05-22 07:44:52 +0100
commit2b571f08d091dc062cedbb9816c29dcf0cbd4f12 (patch)
tree98505fe5fbd433eafe74a188f833b71a4627e08f /src/jcgp/gui/settings
parent9aac9892b5c827e70c4598e0e052d10aad40a2d9 (diff)
Final commit, will release later today.
Diffstat (limited to 'src/jcgp/gui/settings')
-rw-r--r--src/jcgp/gui/settings/SettingsPane.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/jcgp/gui/settings/SettingsPane.java b/src/jcgp/gui/settings/SettingsPane.java
index c0939e9..c59244b 100644
--- a/src/jcgp/gui/settings/SettingsPane.java
+++ b/src/jcgp/gui/settings/SettingsPane.java
@@ -157,25 +157,25 @@ public class SettingsPane extends AnchorPane {
header.setFont(Font.font("Arial", 14));
header.setUnderline(true);
- final ComboBox<EvolutionaryStrategy> eaCBox = new ComboBox<EvolutionaryStrategy>();
- eaCBox.getItems().addAll(jcgp.getEvolutionaryStrategies());
- eaCBox.getSelectionModel().select(jcgp.getEvolutionaryStrategy());
- eaCBox.prefWidthProperty().bind(mainContainer.widthProperty());
+ final ComboBox<EvolutionaryStrategy> esCBox = new ComboBox<EvolutionaryStrategy>();
+ esCBox.getItems().addAll(jcgp.getEvolutionaryStrategies());
+ esCBox.getSelectionModel().select(jcgp.getEvolutionaryStrategy());
+ esCBox.prefWidthProperty().bind(mainContainer.widthProperty());
final VBox eaParameters = new VBox(2);
refreshParameters(jcgp.getEvolutionaryStrategy().getLocalParameters(), eaParameters);
- eaCBox.setOnAction(new EventHandler<ActionEvent>() {
+ esCBox.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
- jcgp.setEvolutionaryStrategy(eaCBox.getSelectionModel().getSelectedIndex());
- refreshParameters(eaCBox.getSelectionModel().getSelectedItem().getLocalParameters(), eaParameters);
+ jcgp.setEvolutionaryStrategy(esCBox.getSelectionModel().getSelectedIndex());
+ refreshParameters(esCBox.getSelectionModel().getSelectedItem().getLocalParameters(), eaParameters);
gui.flushConsole();
}
});
- eaPane.getChildren().addAll(header, eaCBox, eaParameters);
+ eaPane.getChildren().addAll(header, esCBox, eaParameters);
mainContainer.getChildren().add(eaPane);
}