Moved all FXML files to the resource folder

This commit is contained in:
Kai S. K. Engelbart 2020-04-10 21:26:24 +02:00
parent 01a5a95adf
commit 78f14ffcb4
4 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public final class LoginDialog extends Dialog<Void> {
this.localDB = localDB;
this.receivedMessageCache = receivedMessageCache;
final var loader = new FXMLLoader(getClass().getResource("LoginDialog.fxml"));
final var loader = new FXMLLoader(getClass().getResource("/fxml/LoginDialog.fxml"));
loader.setController(this);
final var dialogPane = loader.<DialogPane>load();

View File

@ -124,7 +124,7 @@ public final class Startup extends Application {
.forEach(u -> u.setStatus(UserStatus.OFFLINE));
// Prepare stage and load ChatScene
var loader = new FXMLLoader(getClass().getResource("ChatScene.fxml"));
var loader = new FXMLLoader(getClass().getResource("/fxml/ChatScene.fxml"));
var anchorPane = loader.<GridPane>load();
var chatScene = new Scene(anchorPane);
stage.setTitle("Envoy");