📜  单选按钮 lambda javafx - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:16.541000             🧑  作者: Mango

代码示例1
radioButton.selectedProperty().addListener(new ChangeListener() {
    @Override
    public void changed(ObservableValue obs, Boolean wasPreviouslySelected, Boolean isNowSelected) {
        if (isNowSelected) { 
            // ...
        } else {
            // ...
        }
    }
});