From efbca9cbc9060fdf0934ad7ed49ec1b63ef57a2a Mon Sep 17 00:00:00 2001 From: kske Date: Wed, 2 Sep 2020 09:24:46 +0200 Subject: [PATCH] Fix tab FXML paths --- .../src/main/java/envoy/client/ui/controller/ChatScene.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/envoy/client/ui/controller/ChatScene.java b/client/src/main/java/envoy/client/ui/controller/ChatScene.java index c8f14e8..ee80295 100644 --- a/client/src/main/java/envoy/client/ui/controller/ChatScene.java +++ b/client/src/main/java/envoy/client/ui/controller/ChatScene.java @@ -204,8 +204,8 @@ public final class ChatScene implements Restorable { newContactButton.setDisable(!online); if (online) try { Tooltip.uninstall(contactSpecificOnlineOperations, onlyIfOnlineTooltip); - contactSearchTab.setContent(FXMLLoader.load(new File("src/main/resources/fxml/ContactSearchTab.fxml").toURI().toURL())); - groupCreationTab.setContent(FXMLLoader.load(new File("src/main/resources/fxml/GroupCreationTab.fxml").toURI().toURL())); + contactSearchTab.setContent(new FXMLLoader().load(getClass().getResourceAsStream("/fxml/ContactSearchTab.fxml"))); + groupCreationTab.setContent(new FXMLLoader().load(getClass().getResourceAsStream("/fxml/GroupCreationTab.fxml"))); } catch (final IOException e2) { logger.log(Level.SEVERE, "An error occurred when attempting to load tabs: ", e2); }