You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was trying to share the instance of hostServices with one of the my controllers, but I am getting constantly a nullPointerException
object Main extends JFXApp {
val resource = getClass.getResource("/Views/main.fxml")
val i18n = new PropertyResourceBundle(getClass.getResource("/i18n/en.properties").openStream)
val my: HostServices = hostServices
val loader = new FXMLLoader(resource, new DependenciesByType(Map(
typeOf[HostServices] -> my))) {
setResources(i18n)
}
val root = loader.load[javafx.scene.Parent]
val controller = loader.getController[UnitController]
stage = new PrimaryStage() {
title = "Test"
scene = new Scene(root)
}
Hi,
I was trying to share the instance of hostServices with one of the my controllers, but I am getting constantly a nullPointerException
In MainController:
Although in MainController hostServices is NOT null, hostServices.delegate is null. Any idea?
The text was updated successfully, but these errors were encountered: