Re: Setting a Dialog's owner after construction

From: laura p (laura.paterson_at_gmail.com)
Date: 01/27/05


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



Relevant Pages

  • Re: Setting a Dialogs owner after construction
    ... > application using JavaBeans and a third party library (which also uses ... > This is called when the Beans are created - each bean is then given the ... > owned by the main window... ...
    (comp.lang.java.gui)
  • Re: Imagine
    ... system derived from a reference clock (and you nearly got another typo ... my variance views until overwhelmed by contrary data. ... The whole physics community has been doing ... You're spose to be growin' beans not spilling them. ...
    (sci.physics.relativity)
  • Re: Java Bean Question
    ... Enterprise JavaBeans are a completely different animal. ... constructor, not even that there must be a default constructor, much less that ... Nongraphical Beans ...
    (comp.lang.java.programmer)
  • Re: Walt Kelly, Utah Phillips, and Moose Turd Pie
    ... The first time I heard it, the punch line was "Sheesh these beans are ... salty -- just the way I like 'em." ... Here's a reference to such a story from WWI, ...
    (rec.arts.comics.strips)
  • Re: How to select text in between two "finds"
    ... See that little EXT at the bottom of Word's window? ... You must be viewing your ... Do your find for franks and close the dialog ... > top and the word "beans" somewhere below it. ...
    (microsoft.public.word.newusers)

Loading