From 2b571f08d091dc062cedbb9816c29dcf0cbd4f12 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Thu, 22 May 2014 07:44:52 +0100 Subject: Final commit, will release later today. --- src/jcgp/gui/settings/SettingsPane.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/jcgp/gui/settings') 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 eaCBox = new ComboBox(); - eaCBox.getItems().addAll(jcgp.getEvolutionaryStrategies()); - eaCBox.getSelectionModel().select(jcgp.getEvolutionaryStrategy()); - eaCBox.prefWidthProperty().bind(mainContainer.widthProperty()); + final ComboBox esCBox = new ComboBox(); + 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() { + esCBox.setOnAction(new EventHandler() { @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); } -- cgit v1.2.3