Moved all FXML files to the resource folder
This commit is contained in:
parent
ee4fa78f38
commit
3d1eec4ee0
@ -72,7 +72,7 @@ public final class LoginDialog extends Dialog<Void> {
|
|||||||
this.localDB = localDB;
|
this.localDB = localDB;
|
||||||
this.receivedMessageCache = receivedMessageCache;
|
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);
|
loader.setController(this);
|
||||||
final var dialogPane = loader.<DialogPane>load();
|
final var dialogPane = loader.<DialogPane>load();
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ public final class Startup extends Application {
|
|||||||
.forEach(u -> u.setStatus(UserStatus.OFFLINE));
|
.forEach(u -> u.setStatus(UserStatus.OFFLINE));
|
||||||
|
|
||||||
// Prepare stage and load ChatScene
|
// 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 anchorPane = loader.<GridPane>load();
|
||||||
var chatScene = new Scene(anchorPane);
|
var chatScene = new Scene(anchorPane);
|
||||||
stage.setTitle("Envoy");
|
stage.setTitle("Envoy");
|
||||||
|
Reference in New Issue
Block a user