Interface ActionDialogBuilder<B extends ActionDialogBuilder<B>>
- All Superinterfaces:
DialogBuilder<B>
- All Known Subinterfaces:
OkCancelDialogBuilder
Builds a dialog with a button panel based on actions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceSpecifies the component to display in the dialog. -
Method Summary
Modifier and TypeMethodDescriptionbuild()buttonPanelBorder(@Nullable Border buttonPanelBorder) buttonPanelConstraints(int buttonPanelConstraints) DefaultFlowLayout.TRAILINGdefaultAction(Action defaultAction) A default action is triggered by the Enter keyescapeAction(Action escapeAction) An escape action is triggered by the Escape keymodal(boolean modal) resizable(boolean resizable) show()Builds and shows the dialog.Methods inherited from interface DialogBuilder
icon, keyEvent, location, locationRelativeTo, onBuild, owner, owner, title, title, undecorated, windowFocusListener
-
Method Details
-
action
-
defaultAction
-
escapeAction
-
modal
- Parameters:
modal- true if the dialog should be modal- Returns:
- this builder instance
-
resizable
- Parameters:
resizable- true if the dialog should be resizable- Returns:
- this builder instance
-
size
-
buttonPanelConstraints
DefaultFlowLayout.TRAILING- Parameters:
buttonPanelConstraints- theFlowLayoutpanel constraints for the button panel- Returns:
- this builder instance
-
buttonPanelBorder
-
onShown
-
show
JDialog show()Builds and shows the dialog.- Returns:
- a new JDialog instance based on this builder.
- Throws:
IllegalStateException- in case no controls have been specified
-
build
JDialog build()- Returns:
- a new JDialog instance based on this builder.
- Throws:
IllegalStateException- in case no controls have been specified
-