I am writing a personal application that uses windowListeners,
ActionListeners and possible ItemListeners (combo boxes).
I have one of the Buttons (ActionListeners) set to have a popup
frame/panel to display a Choice. But I would like the Program to not
continue on until the user makes their selection from the
dropdown/Combo box in the new popup window.
Right now, I have it setup so that the Listeners for the main frame
are looking for the button clicks, and then depending on which is
clicked, it does whatever it has to do. But if the X-Button is
clicked, I wanted it to popup with that window and wait for a
selection to be made (a listener for a combo box).
Is this type of thing possible?
I tried having a flag set, and then just wait until that listener sets
the flag and records the choice. But the program runs too fast, and
the window doesnt pop up fast enough with its contents in order for it
to work.
I hope I made my question understandable. Ill post source if anyone
requests it. But its quite sloppy :) Thank in advance for any
responses on how I can accomplish this type of thing.