How do you set the icon of a Dialog control Java FX/Java 8
问题 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 Stage: this.primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("/icon/Logo.png"))); But I don't find anything for the Dialog family. And somehow, setting the Stage Icon does not influence the Dialog Icon. Thanks 回答1: There's an excellent tutorial here by Marco Jakob, where you can find not only how to use