I have a simple question, but I can't find the answer anywhere. I would like to use $PROJECT_DIR$default path variable in IntelliJ.
I wanted to add an icon to the Stage:
stage.getIcons().add(new Image("$PROJECT_DIR$/src/main/resources/com/example/demo/money.png"));
But this doesn't work, unfortunately :(
I tried also using PROJECT_DIR or MODULE_DIR or $MODULE_DIR$, but nothing works. Maybe it's impossible to use those path variables in such way (?). Please, explain it to me.
Using Absolute Path to the image works, but I would like to share my project and that's why I decided to replace it with a path variable.