You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Krohn, Dave" <DK...@eb.com> on 2003/01/02 23:14:01 UTC

[Jelly][Patch] Adding owner capability to Dialog

Attached is a patch (diff file and a new java file) for the DialogTag in
JellySwing.

Currently, the Dialog tag is treated as a bean, so it simply creates a
JDialog.  The problem is that "owner" isn't an attribute that can be set
after the JDialog is created, it has to be passed into the constructor (as
far as I can tell from the JavaDoc).  This means that if you have a modal
dialog launched from JellySwing, it has that annoying behavior where it can
get hidden behind the window that it was spawned from.

The attached class constructs the JDialog, setting its owner based on the
"owner" attribute of the tag.

Dave Pekarek Krohn
dkrohn@acm.org