# io.github.libtmux.Window.Window.rename

- **Module:** io.github.libtmux.Window.Window
- **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/Window.java#L175
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-window-window-rename/

```
io.github.libtmux.Window.Window.rename(name: String) -> Window
```

Renames this window and returns a handle on it as it is now.

<p>A {@code :} or {@code .} is kept as written on every supported release but 3.7, which
refuses the name. A kept delimiter cannot then address the window, since a target splits on
both. Unlike a session name, a window name is never rewritten.
