this is my first post on Stack, I was looking for answer on my question, but I haven't found anything useful. I'm learning Java, so be gentle ;)
My problem is, that I don't want to make One file with everything in "jar". I must load FXML file, which is out of *.jar file. For example: I'm making FXML file which is in my JavaFXMLApplication folder, I run "JavaFXApplication.jar" file and this Application use FXML which I just made.
I hope I describe it clearly :)
EDIT: I have found another solution, which works better for me...
File file = new File("absolutPathToFile\\FXMLDocument.fxml");
InputStream is = new BufferedInputStream(new FileInputStream(file));
Pane root = new Pane();
FXMLLoader loader = new FXMLLoader();
try
{
root = loader.load(is);
}
catch (IOException ex)
{
System.out.println(ex);
}
I hope it will help someone
Cheers :)