I'm trying to make adding/removing on our map a choice via radio buttons, however whenever I call with their toggle group I get errors. In the initialize() method I call:
addButton.setToggleGroup(editGroup);
removeButton.setToggleGroup(editGroup);
But when I call editGroup.getSelectedToggle()
it messes up. I'm making sure one of them is selected, so I'm not sure what I'm doing wrong here.