weixin_39918128 2020-11-20 18:07
浏览 1

Creating Dialog with Native style throw exception.

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

  • 写回答

8条回答 默认 最新

  • weixin_39918128 2020-11-20 18:07
    关注

    Original comment by Jonathan Giles (Bitbucket: JonathanGiles, GitHub: JonathanGiles).

    Hmm, weird, I couldn't reproduce it the other day but now I can. In any case, I've fixed the issue in changeset 0bc2f50.

    评论

报告相同问题?