Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Дмитрий ryabos

😀
  • Saint-Petersburg, Russia
View GitHub Profile
@ryabos
ryabos / SegmentedButton fix
Created Mar 13, 2019
Ugly bugfix for ControlsFX SegmentedButton bug
View SegmentedButton fix
segmentedButton.getToggleGroup().selectedToggleProperty().addListener((observable, oldValue, newValue) -> {
if (newValue == null) {
segmentedButton.getToggleGroup().selectToggle(oldValue);
}
});