Hello, i have a JFrame and i laucnh a model dialog from it,

is there a way of knowing the top most frame? i.e. somehow return the laucnhed dialog,

i need this so i can reparent further dialogs over this dialog if my program needs prompting while the dialog is up...

does this make sense?

i.e. my program exits, i put up a dialog with a progress bar that says closing down, my program then cycles though all the underlying projects that are open in the program, and saves them, but if they need a file to save to then i need to poup a dialog to ask this, however, because the shutting down dialog ist here i can't get the file chooser popup to work..

so is there a way of makeing the jfilechooser be parented to the top most frame, i.e. over the top of my shutdown dialog?

cheers

Andy