Link to home
Start Free TrialLog in
Avatar of CJ715
CJ715Flag for Germany

asked on

Meaning of Owner of a JDialog

Hi all,

can someone explain to me what exactly the owner of JDialog does/is capable of? By owner i refer to the Frame object being passed as the owner argument in the constructor of a JDialog. As far as i know when a frame is focused it brings any existing JDialogs into the foreground which have this frame as their owner. Is that correct? Are there any other implications? What happens when the JDialog is closed, does the focus move to it's owner? Even in a mult iwindow application?

Thanks in advance,
Chris
Avatar of ksivananth
ksivananth
Flag of United States of America image

>>As far as i know when a frame is focused it brings any existing JDialogs into the foreground which have this frame as their owner.
>>

true as long as the dialogs are modal!

>>What happens when the JDialog is closed, does the focus move to it's owner? Even in a mult iwindow application?
>>

yes as long as the opened dialog is modal.
ASKER CERTIFIED SOLUTION
Avatar of ksivananth
ksivananth
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CJ715

ASKER

Thanks for your answer. Do you have by any chance any links to a document where this is mentioned?
I can't find anything really, may be somebody else can point something!