🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19269

Re: On Dialogs

#19269
From: Conrad Hoesle-Kienzlen
Date: Sat, 21 Feb 1998 00:00
48 lines
2711 bytes
Andrew,
but that is just the point: *not* to have to look for the parent frame. If I
have to look for the parent frame as that example (and others posted by you
and Rich)does, then I can't, of course, use a Dialog as a bean, whereas with
my version I can. As for the focus, I always add a this.requestFocus() after
the .show() of the dialog. Apart from that, I could not make out *any*
difference whatsoever (yet) between a dialog that was created with a
"parent" frame and one that was created with a new frame, in fact, I do not
understand why the "parent" frame (whatever that is supposed to mean) is
needed at all. This would mean that an object that does not make use of a
frame cannot instantiate a dialog at all. What's more, somewhere in the
documentation it says that you can set the parent frame of a dialog in the
object inspector. This is not true, at least everytime I tried that, I did
not have that choice. The frame-entry in the object inspector is a drop-down
list and it always only gave me the choice of <none>.
I would be glad if you could clarify this riddle a bit.

Andrew Bennett wrote:

> Conrad Hoesle-Kienzlen wrote:
> >
> > JBuilder online (and printed) documentation is wrong on Dialogs. It
> > states that a Dialog must be constructed with a parent frame (and
> > therefore cannot be made into a bean). This is not necessary. One can
> > create a new dialog with:
>
> This may cause focus related problems - the fact that focus doesn't
> go back to the original parent after the dialog is closed.
>
> The code at ::
>
> http://www.borland.com/devsupport/jbuilder/qanda/956.html
>
> May be a bit better.  It doesn't involve creation of another
> object, and is a bit cleaner as a result.  (Option 1, that is)
>
> Andrew
> --
>   Andrew Bennett
>   abennett@borland.com
>
>   Due to my workload, personal email more than likely won't get a reply.
>   Support options are detailed at http://www.borland.com/devsupport/
>   I am unable to answer support questions via email at this time.
>
>   Check http://www.borland.com/devsupport/jbuilder/ for FAQs and
>   additional JBuilder support related help.
Technical Details
Message-ID: <34EF2B34.CF380360@csi.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34ECB0F1.75915074@csi.com> <34EDBDAA.99232459@borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,597eca2139f62518
X-Google-Attributes: gidf74b3,public
From: Conrad Hoesle-Kienzlen <Conrad_Hoesle@csi.com>
Subject: Re: On Dialogs
Date: 1998/02/21
Message-ID: <34EF2B34.CF380360@csi.com>
X-Deja-AN: 327321750
Content-Transfer-Encoding: 7bit
References: <34ECB0F1.75915074@csi.com> <34EDBDAA.99232459@borland.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: CHK IT-Consulting
Newsgroups: borland.public.jbuilder.java.language