Werner Lehmann lehmann at media-interactive.de
Thu Jan 3 02:28:34 PST 2013

Hi Scott,

makes sense. I have to keep that in mind for next time. I guess there 
also has to be some code for common dialog tasks, e.g.

- show dialog centered on app or on parent window
- modal or modeless
- standard handling of ok/cancel/etc buttons (e.g. know when to close 
the dialog)
- data validation before close
- pass a dialog result to the caller

This is not rocket science but I very much would like to see some 
standard API for that. Maybe it even makes sense to have skeleton 
JDialog/Stage classes which bring their own set of buttons. Otherwise 
you have this ok button in the JFXPanel node but the JDialog does not 
know when it was clicked.


On 02.01.2013 20:06, Scott Palmer wrote:
> I intend to pursue this by creating some helper methods to show a
> dialog containing a single Parent node.  Depending on the parent
> object for the dialog it would automatically wrap the node in a
> JFXPanel and use a JDialog, or use a Stage.  That way I keep the ugly
> stuff in one place and don't have to revisit all those dialogs.

More information about the openjfx-dev mailing list