how to generate button(picture) based on checkboxes selection in javafx
问题 My question is how to generate buttons, set with car pictures, based on the checkboxes and/or radio buttons selected by a user in javafx? I'm simulating a car dealership website with car pictures. The user should be able to filter the pictures displayed by clicking checkboxes and/or radio buttons selection. I'm first creating all the picture buttons with a for each loop. I could use if and if/else statements to filter through the pictures but there would be duplicates. I've heard of