Skip to content

Commit

Permalink
Added Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
seandias committed Sep 11, 2024
1 parent fc139ed commit 58ce543
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/skd/components/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ public class MainWindow extends AnchorPane {
private Image userImage = new Image(this.getClass().getResourceAsStream("/images/DaUser.png"));
private Image dukeImage = new Image(this.getClass().getResourceAsStream("/images/DaDuke.png"));

@SuppressWarnings("checkstyle:MissingJavadocMethod")
/**
* Initializes the main window by binding the scroll pane to automatically scroll to the latest message,
* displays a welcome message, and clears the user input field.
* This method binds the vertical value property of the scroll pane to the height of the dialog container,
* ensuring that the latest message is always visible. It also adds a welcome message to the dialog container
* and resets the user input field.
* This method is automatically called after the FXML file has been loaded.
*/
@FXML
public void initialize() {
scrollPane.vvalueProperty().bind(dialogContainer.heightProperty());
Expand Down

0 comments on commit 58ce543

Please sign in to comment.