Skip to content

Instantly share code, notes, and snippets.

View ryabos's full-sized avatar
😀

Дмитрий ryabos

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