Skip to content

Instantly share code, notes, and snippets.

@ryabos
Created March 13, 2019 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryabos/f16afa3fe34c23b4b22a96c786cfbb9e to your computer and use it in GitHub Desktop.
Save ryabos/f16afa3fe34c23b4b22a96c786cfbb9e to your computer and use it in GitHub Desktop.
Ugly bugfix for ControlsFX SegmentedButton bug
segmentedButton.getToggleGroup().selectedToggleProperty().addListener((observable, oldValue, newValue) -> {
if (newValue == null) {
segmentedButton.getToggleGroup().selectToggle(oldValue);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment