I have two programs, one is a GUI and the other is a normal (non GUI) program. How do I make a method in the non-GUI program wait until a JButton on the GUI gets clicked before continuing?
(No while loops)
This is frustrating since I'm fairly certain somebody here has answered this question for me before, but I can't find the post, if so.