# io.github.libtmux.Pane.Pane.refresh

- **Module:** io.github.libtmux.Pane.Pane
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/Pane.java#L1109
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-pane-pane-refresh/

```
io.github.libtmux.Pane.Pane.refresh() -> Pane
```

Takes a new capture and returns this pane as it is now.

This handle remains unchanged. Use the returned handle for subsequent state reads.

## Raises

- `ObjectDoesNotExistException`: if the pane is gone from a server that still answers
- `ServerNotRunningException`: if no daemon is running
