JavaFX-Spring icon indicating copy to clipboard operation
JavaFX-Spring copied to clipboard

Blog post comment is closed

Open hajaUR1 opened this issue 11 years ago • 0 comments

Hi Steve, First thing first, thanks for sharing such valuable material. Your blog post commenting seems closed so sorry for this github channel.

A question remains though, with such architecture what is the cleanest way to customize the error message ? Currently, and for sake of clarity, I understand that it's hard-coded in fxml. What I want to achieve is a builder-like :

screens.errorDialog().withMessage("custom warning message").withSeverity(Severity.WARNING).show()

Trouble is that I can update fxml dialog fields' only in controller(with @FXML), but latter is injected in FXMLDialog view on build time in ScreensConfiguration. I also want to re-use FXMLDialog for other kind of dialog.

Thanks in advance, Cheers, Ben

hajaUR1 avatar Feb 13 '14 04:02 hajaUR1