i deployed my javafx project then install it all is loading correctly except buttons that are supposed to load fxml interfaces in External form are not working even if it’s working correctly when i compile my code but in exe file it’s giving me a nullPointeur error i’m using jre 8 and scene builder for the interfaces
i tried to rebuild the external forme interfaces and i removed the css from my interface properties in scene builder and insered the css in the in the code after loading the fxml
root = loader.load(getClass().getResource(“/Fxml/AddH.fxml”).openStream());
root.getStylesheets().add(getClass().getResource(“/application.css”).toExternalForm());
but still not working
Baki213 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.