The button types stay declared - ButtonType.CLOSE is what lets Escape and the window's close
button close the dialog, and DialogPane#lookupButton keeps working, because the pane fills its
button nodes from a listener on the button types rather than from the bar. Only the bar itself
is gone, so a dialog that shows its own buttons has no unused node in the scene graph.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected @Nullable Node | createButtonBar()
Overrides javafx. This method can be overridden by subclasses to provide the button bar. |
| DialogPaneWithoutButtonBar | back to summary |
|---|---|
| public DialogPaneWithoutButtonBar() | |
| createButtonBar | back to summary |
|---|---|
| protected @Nullable Node createButtonBar() Overrides javafx. Doc from javafx. This method can be overridden by subclasses to provide the button bar. Note that by overriding this method, the developer must take on multiple responsibilities:
The default implementation of this method creates and returns a new
| |