diff --git a/cobigen/gui/src/main/java/com/devonfw/cobigen/gui/Controller.java b/cobigen/gui/src/main/java/com/devonfw/cobigen/gui/Controller.java index 86f882017c..b88077148e 100644 --- a/cobigen/gui/src/main/java/com/devonfw/cobigen/gui/Controller.java +++ b/cobigen/gui/src/main/java/com/devonfw/cobigen/gui/Controller.java @@ -16,7 +16,6 @@ import javafx.scene.control.Button; import javafx.scene.control.ListView; import javafx.scene.control.TextField; -import javafx.scene.input.KeyEvent; import javafx.scene.layout.AnchorPane; /** @@ -48,6 +47,9 @@ public class Controller implements Initializable { @FXML public TextField searchBar; + @FXML + public Button goSearch; + // TODO: Transform to ListView @FXML public ListView searchResultsView; @@ -89,9 +91,10 @@ public void loadDetails(javafx.event.ActionEvent actionEvent) throws IOException /** * @param event + * @throws IOException */ @FXML - public void search(KeyEvent event) { + public void search(javafx.event.ActionEvent event) throws IOException { this.searchResultsView.getItems().clear(); this.searchResultsView.getItems().addAll(searchTemplateSets(this.searchBar.getText(), this.templateSets)); diff --git a/cobigen/gui/src/main/resources/com/devonfw/cobigen/gui/SearchResults.fxml b/cobigen/gui/src/main/resources/com/devonfw/cobigen/gui/SearchResults.fxml index 1e4d21a308..67220a18d9 100644 --- a/cobigen/gui/src/main/resources/com/devonfw/cobigen/gui/SearchResults.fxml +++ b/cobigen/gui/src/main/resources/com/devonfw/cobigen/gui/SearchResults.fxml @@ -3,191 +3,206 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +