# io.github.libtmux.Pane.Pane.findWindow

- **Module:** io.github.libtmux.Pane.Pane
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/Pane.java#L177
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-pane-pane-findwindow/

```
io.github.libtmux.Pane.Pane.findWindow(match: String) -> void
```

Puts this pane into the window browser, showing only the windows matching some text.

<p>Despite the name, this finds nothing and goes nowhere: tmux opens the same tree the other
choosers use, narrowed to what matched, and leaves the active window where it was. A caller
wanting to act on a match should filter {@link Server#windows()} instead.

<p>A match that finds nothing is not reported. The pane enters the browser either way, so
{@link #mode()} cannot tell the two apart and neither can an exit status.

<p>Matches a window's name, its title and its visible content, which is what tmux does when
told nothing more specific.
