I'm pretty new at JavaFx
, and what I'm trying to do is, to create an alert dialog with a custom picture.
First, I'm using IntelliJ idea
and I didn't understand where to locate the .jpg
file in the project (see picture attached).
Second, after adding the picture to the project, how do I proceed?
Alert alert = new Alert(Alert.AlertType.ERROR, "Error", ButtonType.OK);
alert.showAndWait();
Thank you