Skip to content

Commit

Permalink
Update DetailsAppFrame.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AllKeng authored Nov 13, 2023
1 parent e1d3edf commit a1fbc76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/code/client/View/DetailsAppFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ public void displayUpdate(RecipeDetailsUI details) {
TextField title = details.getTitleField();
title.setAlignment(Pos.CENTER);
title.setStyle("-fx-font-weight: bold; -fx-font-size: 20;");

addListeners();

detailedUI.getChildren().addAll(backToHomeButton, title);
setupContainer.getChildren().add(details);
detailedUI.getChildren().addAll(setupContainer, saveButton, editButton,deleteButton);
Expand All @@ -181,7 +184,7 @@ public void setRoot(Scene scene) {

// Actual code
RecipeDetailsUI details = currentRecipe;

displayUpdate(details);
// Changes the User Screen
scene.setRoot(detailedUI);
Expand Down

0 comments on commit a1fbc76

Please sign in to comment.