Setting a Dialog's owner after construction
From: laura p (laura.paterson_at_gmail.com)
Date: 01/26/05
- Next message: bob.nipp_at_ngc.com: "Re: java xml parser"
- Previous message: A. Bolmarcich: "Re: GridLayout and glue"
- Next in thread: John McGrath: "Re: Setting a Dialog's owner after construction"
- Reply: John McGrath: "Re: Setting a Dialog's owner after construction"
- Reply: Thomas Weidenfeller: "Re: Setting a Dialog's owner after construction"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Jan 2005 09:34:42 -0800
Hi,
I have a problem where I need to set the owner of a dialog after it has
been constructed. Looking at the API, it looks like the only place i
can set the owner is in the super(Frame owner) or super(Dialog owner)
constructors.
I have a collection of dialogs, which are created using simple
reflection (i.e. no constructors). I don't necessarily know what the
parent window is at this point. Once they have all been constructed, I
retrieve a handle to the window, and want to iterate through the
dialogs and somehow set their owner to be my window.
Setting the owner is key, as it prevents the dialogs going behind the
main window, and also provides a location reference.
Any advice would be great!
laura
- Next message: bob.nipp_at_ngc.com: "Re: java xml parser"
- Previous message: A. Bolmarcich: "Re: GridLayout and glue"
- Next in thread: John McGrath: "Re: Setting a Dialog's owner after construction"
- Reply: John McGrath: "Re: Setting a Dialog's owner after construction"
- Reply: Thomas Weidenfeller: "Re: Setting a Dialog's owner after construction"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|