New feature request for DialogFX

72 views
Skip to first unread message

Kevin Penrose

unread,
Apr 3, 2013, 10:39:34 AM4/3/13
to jfxtra...@googlegroups.com
I love the simplicity of the DialogFX package in JFXtras, but there is one annoying aspect to using it:  the dialog always pops up in the middle of the screen, and I see this behavior is coded into the source with a call to stage.centerOnScreen() (or something like that).  I would like to suggest that the position of the dialog be allowed to be set using either the stage.setX() and stage.setY() calls, or some other method that would take the coordinates as parameters.  My app will usually not be centered on screen, and to have dialogs pop up in the center of the screen just looks wrong.

Thanks!

Mark Heckler

unread,
Apr 3, 2013, 11:52:39 AM4/3/13
to jfxtra...@googlegroups.com
Hmm...that's a very good point.

I've actually replaced the DialogFX capability with its successor, MonologFX. MonologFX has several capabilities (skinning, i18n, etc.) that enhance usability without adding much complexity...but it also centers by default. I've been needing/wanting to do a few tweaks anyway, so let me try to get an update out over the next few days. Can't promise any timeline, as things are a bit hectic...but it shouldn't take too long.

Thanks for the input, Kevin! More news shortly.  :-D

All the best,
Mark



On Wed, Apr 3, 2013 at 9:39 AM, Kevin Penrose <kevin....@gmail.com> wrote:
I love the simplicity of the DialogFX package in JFXtras, but there is one annoying aspect to using it:  the dialog always pops up in the middle of the screen, and I see this behavior is coded into the source with a call to stage.centerOnScreen() (or something like that).  I would like to suggest that the position of the dialog be allowed to be set using either the stage.setX() and stage.setY() calls, or some other method that would take the coordinates as parameters.  My app will usually not be centered on screen, and to have dialogs pop up in the center of the screen just looks wrong.

Thanks!

--
You received this message because you are subscribed to the Google Groups "JFXtras Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jfxtras-user...@googlegroups.com.
To post to this group, send email to jfxtra...@googlegroups.com.
Visit this group at http://groups.google.com/group/jfxtras-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mark Heckler

unread,
Apr 8, 2013, 9:25:52 PM4/8/13
to jfxtra...@googlegroups.com
Kevin et al,

I updated MonologFX and the corresponding MonologFXBuilder classes in v2.2 of JFXtras-Labs, doing some code cleanup and adding the capability for developers to position the dialog using setPos(x, y) or setX(x) and setY(y) methods. The Builder incorporates X and Y methods to do the same. The v8.0 code line allows for use of the MonologFX class, just not the Builder. Default behavior remains to center the dialog, unless coords are provided.

I'm intentionally only checking for coords >= 0. I debated whether to check for valid screen coords, but decided against it in case someone, somewhere had a use case for "presenting" a hidden dialog; this would still allow for that by positioning it off-screen and awaiting some response. Not sure if that's valid or not really, and I'd appreciate anyone's thoughts on good/bad idea. As someone once said, "I feel strongly both ways."  ;-)  I just knew as soon as I disallowed it, someone would make an excellent case for it...so it's there for now.

Please take a look and see what you think. Thanks, all!

All the best,
Mark

scot...@celer-tech.com

unread,
May 3, 2013, 9:56:25 PM5/3/13
to jfxtra...@googlegroups.com
Hi Mark,

Thanks for your work on MonologFX, crazy to think that JavaFX (2.2 at least) has no support for dialogs etc

Is MonologFX able to create dialogs that don't require use input?  Like an email notification popup that you get in Microsoft Outlook, or the notification popups that you get in MacOS Mountain Lion.  I had a quick look at the code on Github and I didn't see anything that does this out of the box...


Regards,
Scott

Mark Heckler

unread,
May 6, 2013, 4:08:14 PM5/6/13
to jfxtra...@googlegroups.com
Not yet...but that's a great idea. Putting that on the list right now.

It may take me a bit to incorporate that, but it's going to happen. Time to reshuffle the schedule...  :-)

Thanks again,
Mark
Reply all
Reply to author
Forward
0 new messages