Original report by Andreas Liebelt (Bitbucket: aliebelt, GitHub: aliebelt).
We use a custom style-class for designing the buttons of "Dialog" (see attachment: bottom-right / Windows-Style) :
#!java
Dialog dialog = new Dialog(owner, "My Title");
dialog.getWindow().getScene().getStylesheets().add(MyClass.class.getResource("/button.css").toExternalForm());
For "Dialogs" this is not possible (see attachment: visible dialog).
It would be nice if the API of "Dialogs" would provide a method to add custom stylesheets.
该提问来源于开源项目:controlsfx/controlsfx