Skip to content

Commit

Permalink
Refine GUI & Change Gradle mainclass
Browse files Browse the repository at this point in the history
  • Loading branch information
Leb14 committed Sep 20, 2023
1 parent 308abb1 commit acf8946
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test {
}

application {
mainClass.set("Duke")
mainClass.set("duke.Launcher")
}

shadowJar {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/command/EditCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public String execute(TaskList t, Ui ui, FileHandler f) {
if (t.get(index - 1) instanceof Deadline) {
return editDeadline((Deadline) t.get(index - 1), t);
}
return "Invalid";
return "Invalid task";
} catch (IndexOutOfBoundsException e) {
return "Please enter the correct task's index number.";
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/view/DialogBox.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Priority?>

<fx:root alignment="TOP_RIGHT" styleClass="dialog-container" type="javafx.scene.layout.HBox" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1">
<fx:root alignment="TOP_RIGHT" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefWidth="600.0" styleClass="dialog-container" type="javafx.scene.layout.HBox" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Label fx:id="dialog" text="Label" wrapText="true" HBox.hgrow="ALWAYS" />
<ImageView fx:id="displayPicture" fitHeight="99.0" fitWidth="99.0" pickOnBounds="true" preserveRatio="true" HBox.hgrow="ALWAYS" />
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/view/MainWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="500.0" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gui.MainWindow"> <children>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="650.0" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gui.MainWindow"> <children>
<TextField fx:id="userInput" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="10.0" AnchorPane.rightAnchor="90.0" onAction="#handleUserInput" />
<Button fx:id="sendButton" AnchorPane.bottomAnchor="10.0" AnchorPane.rightAnchor="10.0" onAction="#handleUserInput" text="Send" />

Expand Down

0 comments on commit acf8946

Please sign in to comment.