Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

radio button lambda javafx

radioButton.selectedProperty().addListener(new ChangeListener<Boolean>() {
    @Override
    public void changed(ObservableValue<? extends Boolean> obs, Boolean wasPreviouslySelected, Boolean isNowSelected) {
        if (isNowSelected) { 
            // ...
        } else {
            // ...
        }
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #radio #button #lambda #javafx
ADD COMMENT
Topic
Name
3+7 =