posted 17 years ago
My application consists of a JFrame and a lot of JInternalFrames. I would like to add a facility to some of my JInternalFrames which would allow the user to invoke some kind of data selection dialog box for lookup tables etc. If I code this lookup facility as another JInternalFrame I don't how to tell from the JInternalFrame (parent) that invoked it what value the user has selected or indeed that a value has been selected at all. If I create the lookup facility as a JDialog then it is modal and in effect non of the other many JInternalFrames that the user has open are accessible until the dialog is closed.
What is the best way to return a value from one form to another in a manner that the calling form waits for the child form to complete.
I had wondered if it was possible to code my lookup form as a dialog but when creating it pass my JInternalFrame (parent) as the owner, but it does not seem possible to cast a JInternalFrame as a JFrame.
I hope I have explained myself clearly enough.
Thanks in advance
Dave