Re: Setting a Dialog's owner after construction
From: laura p (laura.paterson_at_gmail.com)
Date: 01/27/05
- Next message: Gil: "How can I add another MutableTreeNode to a tree?"
- Previous message: Thomas Weidenfeller: "Re: Website with advanced uses of jtable?"
- In reply to: Thomas Weidenfeller: "Re: Setting a Dialog's owner after construction"
- Next in thread: Symon: "Re: Setting a Dialog's owner after construction"
- Reply: Symon: "Re: Setting a Dialog's owner after construction"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Jan 2005 01:48:41 -0800
Thank you for your suggestions, unfortunately a significant
architecture rethink is not possible.
My main application window is created by an existing large-scale
application. I am currently writing an additional component for this
application using JavaBeans and a third party library (which also uses
JavaBeans). BeanContext membership requires a default constructor.
This is called when the Beans are created - each bean is then given the
opportunity to utilise a handle (or reference ;) to every other bean in
that context. It is at this point that each dialog can discover what
its parent _should_ be, but I cannot set it at that point...
I did consider creating each component as a panel, then add it to a
dialog at a later point. However, any component that wants to affect
the dialog through an action (or retrieve its infomative contents) has
to get the reference to the actual dialog when the beans are created,
so this is not possible.
If it isn't possible to set the owner once the dialog has been created,
I will need to look at other ways of achieving the effect of being
owned by the main window...
L
- Next message: Gil: "How can I add another MutableTreeNode to a tree?"
- Previous message: Thomas Weidenfeller: "Re: Website with advanced uses of jtable?"
- In reply to: Thomas Weidenfeller: "Re: Setting a Dialog's owner after construction"
- Next in thread: Symon: "Re: Setting a Dialog's owner after construction"
- Reply: Symon: "Re: Setting a Dialog's owner after construction"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|