[Solved] Javafx .add and .remove not working in SelectionModel
I would suggest you not use a StackPane for displaying only one thing at a time. Instead, switch out what you want to display. Then the button can just look up what’s being displayed, and throw it over to the other side. Try this: public class GroceryList extends Application { String fruit; ObservableList<String> dataSelected = … Read more