marcojakob / javafx-ui-sandbox

Sandbox UI Controls from the official OpenJFX repository
MIT License
81 stars 56 forks source link

Ability for Custom Dialogs #1

Closed marcojakob closed 11 years ago

marcojakob commented 11 years ago

It would be nice to have custom dialogs. The Dialogs class would take care of displaying the OK / Cancel buttons while allowing custom compoments as the 'message'.

Something like Dialogs.showCustom(..., Stage dlgStage, ...) was suggested.

guldner commented 11 years ago

I've created a pull request with a few changes to support custom dialogs. I needed a dialog with two input fields, and wanted to reuse the nice look'n'feel of the other dialogs. I am quite new to JavaFX so there are probably cleaner and/or smarter ways to do this. Please have a look.

login_dialog

marcojakob commented 11 years ago

Issue is resolved by #7