I might be missing something very obvious, but I can\'t find out how to set the Icon for a Dialog component (ProgressDialog to be more precise). I know how to do that for a Stag
You can easily use the icon of your application for the alert-icon by setting your application-window as owner of the alert box:
@FXML
Button buShow;
...
Alert alert = new Alert(AlertType.INFORMATION, "Nice Box.", ButtonType.CLOSE);
alert.initOwner(buShow.getScene().getWindow()); // Alert uses the Windows Icon
alert.show();