Combination of Threads and Frames
I wasn't sure if I should post this under Threads and Synchronization or AWT/Swing because I feel like it falls under both categories. I apologize if it's in the wrong one :eek:
Here's the scenario though:
I have a JFrame with a number of JPanels on it. When you click on one of the JPanels, it needs to open up another JFrame from which I need to prompt the user for a series of values. I'm trying to avoid using JOptionPanes for all of the inputs as I my JFrame can get all of the inputs at once and theoretically pass them as an array??
My question is this, how can I halt the original JFrame/JPanel until the the user has entered their input and clicked ok, since those values need to be used in the original JFrame/JPanel.
I'm not really asking for specific source code just maybe some ideas or suggestions about how to approach the problem.
I've tried using a synchronize block on the original frame to halt it while the input JFrame would call notify after it has gathered it's input. But it didn't work out.
To simplify the problem its basically this:
Create a JFrame and have it display something
Open another JFrame and use it to gather some input
Display that data on the first JFrame
Thanks for any help!!