Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ A list of all possible error codes can be found [here](ERROR_CODES.md).
### 1. The framework throws an exception when doing something
All exceptions thrown by the framework are listed in the [error code documentation](ERROR_CODES.md).
When the framework throws an exception, it will print the error code and a short description of the error to the console.
If for example the error `java.lang.IllegalArgumentException: Class '*' is not a component. [FFX1000]` is thrown, you can
check the error code documentation for [FFX1000](ERROR_CODES.md#1000-class--is-not-a-component) to find out what the error
means and how to fix it.
If for example the error `java.lang.IllegalArgumentException: FFX1000: Class '*' is not a component.` is thrown, you can check the error code documentation for [FFX1000](ERROR_CODES.md#1000-class--is-not-a-component) to find out what the error means and how to fix it.

### 2. My route is not found even though it is registered
When using `show("route/to/controller")` without a leading "`/`", the route is relative to the currently displayed controller.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private FrameworkUtil() {
}

public static String error(int id) {
return ERROR_BUNDLE.getString(String.valueOf(id)) + " [FFX" + id + "]";
return "FFX" + id + ": " + ERROR_BUNDLE.getString(String.valueOf(id));
}

public static String note(int id) {
Expand Down
3 changes: 3 additions & 0 deletions ludo/src/main/java/de/uniks/ludo/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public void start(Stage primaryStage) {
// Setting the default resource bundle of the application to the resource bundle provided by the component
setDefaultResourceBundle(component.bundle());

primaryStage.setWidth(1200);
primaryStage.setHeight(800);

// Adding a key event handler to the stage, which listens for the F5 key to refresh the application
stage().addEventHandler(KEY_RELEASED, event -> {
if (event.getCode() == KeyCode.F5) {
Expand Down
3 changes: 0 additions & 3 deletions ludo/src/test/java/de/uniks/ludo/AppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ public void start(Stage stage) throws Exception {

@Test
public void test() {
Platform.runLater(() -> app.stage().requestFocus());
waitForFxEvents();

press(KeyCode.LEFT);
release(KeyCode.LEFT);
press(KeyCode.TAB);
Expand Down
Loading