Original report by Samir Hadzic (Bitbucket: shadzic, GitHub: shadzic).
Due to the new API, and the modification regarding the DialogStyle vs CSS Styling. It is not possible to create a Dialog with native style:
#!java
Exception in thread "JavaFX Application Thread" java.lang.UnsupportedOperationException
at java.util.Collections$UnmodifiableList.add(Collections.java:1374)
at javafx.collections.ListChangeBuilder.nextRemove(ListChangeBuilder.java:208) at javafx.collections.ListChangeBuilder.nextRemove(ListChangeBuilder.java:208)
at javafx.collections.ObservableListBase.nextRemove(ObservableListBase.java:150)
at javafx.collections.ModifiableObservableListBase.remove(ModifiableObservableListBase.java:181)
at com.sun.javafx.collections.ObservableListWrapper.removeAll(ObservableListWrapper.java:174)
at javafx.collections.ObservableListBase.removeAll(ObservableListBase.java:260)
at org.controlsfx.dialog.FXDialog.updateStageStyle(FXDialog.java:408)
at org.controlsfx.dialog.FXDialog.lambda$init$53(FXDialog.java:210)
该提问来源于开源项目:controlsfx/controlsfx