# DialogHandle

Import: `import com.install4j.api.test.ui.DialogHandle;`

```java
interface DialogHandle extends UiContainer
```

Handle for a modal `JDialog`. Concrete dialog handles add their own actions.

Reach this handle via [`Session.dialog`](../session/Session.md#dialog-dialogmatcher).

## Inherited from

- [UiContainer](UiContainer.md) — 2 methods

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getTitle()`](#gettitle) | `String` | The dialog's title-bar text. |
| [`clickWindowClose()`](#clickwindowclose) | `void` | Click the title-bar window-close button. |

### getTitle()

```java
String getTitle()
```

The dialog's title-bar text.

### clickWindowClose()

```java
void clickWindowClose()
```

Click the title-bar window-close button.

