I’m trying to achieve something similar to this:
public void execute(){
RandomClass item = showPopupBox(randomClassArrayList).selectItem();
randomClassArrayList.remove(item);//Obv I can make this one line.
}
showPopupBox would create a popup box (go figure), populate a list of radio buttons for each item on the list, and return a selected item from the list when you pushed the OK button. until then the execute method would wait for the popupbox to return the item from the popup box selected via radio button.
I cant really post anything more than this because if I could I wouldn’t need to ask. I’m trying to fill a parameter via popup box.
My question is only related to having the execute() method wait for the OK button of the popup box to be pressed, which would fill the parameter and finish the execute() method
You can do something like this (not tested):
Then, you can use it like this: