I'm relatively new to Java Swing programming. I have a console application
that processes text files and while doing so I want to suspend the execution
when an error is encountered that requires the user to make a choice. I want
to do that with my own JFrame that allows the user to edit the bad data in a
GUI and then click "Accept" or "Ignore". If the user clicks "Accept", the
JFrame contributes the data to the standard output being generated by the
console application; otherwise it just leaves it out.
My problem is that when I create the JFrame from my console application and
call the frame's show() method, program execution does not block. I want the
program to stop until the user closes the JFrame.
Is this possible, and if so, how?
-tuno