JediTerm
Pure Java Terminal Emulator. Works with SSH and PTY
...Its main purpose is to provide a reusable terminal widget rather than a full standalone terminal product. It supports terminal sessions over SSH as well as local PTY sessions on macOS, Linux, and Windows. The library is used across JetBrains IDEs, including IntelliJ IDEA, PyCharm, WebStorm, PhpStorm, CLion, AppCode, and Rider. JediTerm handles terminal rendering, shell output interpretation, keyboard input, and integration concerns needed for an embedded terminal experience. It is best suited for developers building Java-based tools that need a mature, IDE-grade terminal component.