I added .css
stylesheet to Scene builder for Choice box, but relative path is wrong:
INFO: Could not find stylesheet: file:/mnt/windows/projects/Java/DiamondCircle/out/production/DiamondCircle/gui/choicebox.css
It clearly doesn't exist. Why does it look for path in out/production/
?
I use IntelliJ and System.out.println(getClass().getResource("entry.fxml").toString());
returns:
file:/mnt/windows/projects/Java/DiamondCircle/out/production/DiamondCircle/gui/entry.fxml
When I choose absolute path in Scene builder it works, but I don't want to use absolute path.