After deleting a data series, the UI deletion cannot be called. #395
Unanswered
16637142795
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Be sure you are using recent versions of jfreechart-fx and dependencies. The message |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Children: duplicate children added: parent = ListViewSkin$2@4e4efb64[styleClass=cell indexed-cell list-cell]'null'
Button delete = FromsUtil.getButtonNoborder("", ImageFactory.getImageView(ImageFactory.delete_svg), 32.0, 32.0);
Button deleteUI = FromsUtil.getButtonNoborder("", ImageFactory.getImageView(ImageFactory.delete_svg), 32.0, 32.0);
delete.setOnAction(event -> {
dataset.setNotify(false);
for (XYSeries series : seriesList) {
dataset.removeSeries(dataset.getSeriesIndex(series.getKey()));
}
dataset.setNotify(true);
});
deleteUI.setOnAction(event -> {
Platform.runLater(() -> {
layerListView.getItems().remove(this);
});
});
This is my test code. After deleting the data in the first step, delete the data in the layer corresponding to the UI and keep reporting errors
Beta Was this translation helpful? Give feedback.
All reactions