JediTerm
Pure Java Terminal Emulator. Works with SSH and PTY
...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.