N
Nicky Chorley
Hi,
I have a program that currently uses two threads - the main thread
that just sets up a GUI, adds ActionListeners to buttons, etc and
another thread that does some processing and updates the GUI. The
processing thread reads lines from a file (amongst other things) and
terminates when the end of the file has been reached (I assume it's
terminating anyway. There's an infinite while loop in my Runnable's
run() method and I break out of it at end of file). While doing the
processing, this thread stores results in an object (in this case a
vector) and what I would like to do is display another window with
results in right after the processing thread has finished. I'm
thinking this involves doing a notify() somewhere but am stuck working
out how. Any hints?
Regards,
NC
I have a program that currently uses two threads - the main thread
that just sets up a GUI, adds ActionListeners to buttons, etc and
another thread that does some processing and updates the GUI. The
processing thread reads lines from a file (amongst other things) and
terminates when the end of the file has been reached (I assume it's
terminating anyway. There's an infinite while loop in my Runnable's
run() method and I break out of it at end of file). While doing the
processing, this thread stores results in an object (in this case a
vector) and what I would like to do is display another window with
results in right after the processing thread has finished. I'm
thinking this involves doing a notify() somewhere but am stuck working
out how. Any hints?
Regards,
NC