Skip to content

Commit

Permalink
Comply with issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
yadobler committed Sep 24, 2024
1 parent 03e69b4 commit f0defe5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
9 changes: 6 additions & 3 deletions src/main/java/yappingbot/ui/gui/DialogBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@
* and a label containing text from the speaker.
*/
public class DialogBox extends HBox {
private @FXML Label dialog;
private @FXML ImageView displayPicture;
private @FXML VBox labelsVbox;
@FXML
private Label dialog;
@FXML
private ImageView displayPicture;
@FXML
private VBox labelsVbox;
private final boolean isReplyDialog;

/**
Expand Down
12 changes: 8 additions & 4 deletions src/main/java/yappingbot/ui/gui/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@
* Controller for the main GUI.
*/
public class MainWindow extends VBox {
private @FXML TextField userInput;
private @FXML Button sendButton;
private @FXML VBox dialogContainer;
private @FXML ScrollPane scrollPane;
@FXML
private TextField userInput;
@FXML
private Button sendButton;
@FXML
private VBox dialogContainer;
@FXML
private ScrollPane scrollPane;

private final InputStream userImageStream =
this.getClass().getResourceAsStream("/images/DaUser.png");
Expand Down

0 comments on commit f0defe5

Please sign in to comment.