diff --git a/topics/user_interface_components/dialog_wrapper.md b/topics/user_interface_components/dialog_wrapper.md index f1126405b..dc91ed444 100644 --- a/topics/user_interface_components/dialog_wrapper.md +++ b/topics/user_interface_components/dialog_wrapper.md @@ -17,12 +17,14 @@ It provides the following features: * Left/Right for switching between buttons * Y/N for Yes/No actions if they exist in the dialog * Optional Do not ask again checkbox + +### Usage When using the [`DialogWrapper`](upsource:///platform/platform-api/src/com/intellij/openapi/ui/DialogWrapper.java) class for a dialog, follow these steps: -* Call the base class constructor and provide either a project in the frame of which the dialog will be displayed, or a parent component for the dialog. +* Call the base class constructor and provide either a `Project` in the frame of which the dialog will be displayed, or a parent component for the dialog. * Call the `init()` method from the constructor of the dialog class -* Call the `setTitle()` method to set the title for the dialog box +* Call the `setTitle()` method to set the title for the dialog * Implement the `createCenterPanel()` method to return the component comprising the main contents of the dialog. * *Optional*: Override the `getPreferredFocusedComponent()` method and return the component that should be focused when the dialog is first displayed. @@ -44,6 +46,8 @@ To customize the buttons displayed in the dialog (replacing the standard