The problem I'm having is, when you add text to the List, I can't find a way to wait on the user input before continuing on.
Hi - I'm not totally following your code or your solution, I have to admit, but I thought I'd throw out a couple ideas. First a simple possible typo check: if you are mixing up "response" and "responce". I guess either works, as long as you are consistent, and you aren't using "responce" thinking you are invoking a built-in
Java method.
Second, in general, if you want to wait for a response, I think the proper thing would be to isolate the code that does the basic setup and presentation from the code that reacts to the User. Maybe you are already doing that? I'm assuming the SelectionListener is for selecting a choice in a dropdown, not for responding to text input, but as I said, my understanding of your code is superficial.
But for example, on general principles, let's say there is a listener that specifically reacts to keyed input to your TextEngine. I imagine it will either react to every key that is entered, or only when the <Enter> key is hit? If the former, I would
test each key entered to see if it is an <Enter> key or not, and in either case, ONLY call the code which responds to the input via this listener. Placing responding code directly after the .interact() method won't work because, as you note, the next line immediately executes. The responding code should only be accessible via whatever listener is appropriate for your TextEngine.
Hope this helps!