File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/qupath/ext/wsinfer/ui Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 2323import javafx .stage .Stage ;
2424import org .slf4j .Logger ;
2525import org .slf4j .LoggerFactory ;
26+ import qupath .lib .gui .ExtensionClassLoader ;
2627import qupath .lib .gui .QuPathGUI ;
2728import qupath .lib .gui .dialogs .Dialogs ;
2829
@@ -69,7 +70,10 @@ private Stage createStage() throws IOException {
6970 throw new IOException ("Cannot find URL for WSInfer FXML" );
7071 }
7172
72- VBox root = FXMLLoader .load (url , resources );
73+ // We need to use the ExtensionClassLoader to load the FXML, since it's in a different module
74+ var loader = new FXMLLoader (url , resources );
75+ loader .setClassLoader (QuPathGUI .getExtensionClassLoader ());
76+ VBox root = loader .load ();
7377
7478 // There's probably a better approach... but wrapping in a border pane
7579 // helped me get the resizing to behave
You can’t perform that action at this time.
0 commit comments