Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Increase width of help window command pane #350

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions src/main/java/seedu/address/ui/HelpWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@
public class HelpWindow extends UiPart<Stage> {
public static final String USERGUIDE_URL = "https://ay2324s2-cs2103t-t17-3.github.io/tp/UserGuide.html";
public static final String[][] COMMAND_DESCRIPTIONS = {
{"add", "Adds a client to FitBook."},
{"clear", "Clears all entries from FitBook. USE WITH CAUTION."},
{"delete", "Deletes the specified client from FitBook."},
{"edit", "Edits an existing client in FitBook."},
{"exit", "Exits FitBook."},
{"find", "Finds all clients whose specified attribute contains the specified keyword"
+ " (Uses name attribute if none specified)."},
{"fitadd", "Adds exercise(s) to an existing client in FitBook."},
{"fitdelete", "Deletes exercise(s) from an existing client in FitBook."},
{"help", "Shows this window."},
{"list", "Shows a list of all clients saved in FitBook."},
{"note", "Adds a new note to a client."},
{"weight", "Adds a new weight value to a client."},
{ "add", "Adds a client to FitBook." },
{ "clear", "Clears all entries from FitBook. USE WITH CAUTION." },
{ "delete", "Deletes the specified client from FitBook." },
{ "edit", "Edits an existing client in FitBook." },
{ "exit", "Exits FitBook." },
{ "find", "Finds all clients whose specified attribute contains the specified keyword"
+ " (Uses name attribute if none specified)." },
{ "fitadd", "Adds exercise(s) to an existing client in FitBook." },
{ "fitdelete", "Deletes exercise(s) from an existing client in FitBook." },
{ "help", "Shows this window." },
{ "list", "Shows a list of all clients saved in FitBook." },
{ "note", "Adds a new note to a client." },
{ "weight", "Adds a new weight value to a client." },
};

private static final Logger logger = LogsCenter.getLogger(HelpWindow.class);
Expand Down Expand Up @@ -100,7 +100,7 @@ public void initialize() {
Label commandLabel = new Label(commandName);
Label descriptionLabel = new Label(commandDescription);

commandLabel.setPrefWidth(50);
commandLabel.setPrefWidth(60);

HBox commandBox = new HBox(10);
commandBox.getChildren().addAll(commandLabel, descriptionLabel);
Expand All @@ -112,7 +112,8 @@ public void initialize() {
/**
* Shows the help window.
*
* @throws IllegalStateException <ul>
* @throws IllegalStateException
* <ul>
* <li>
* if this method is called on a thread other than
* the JavaFX Application Thread.
Expand Down
Loading