PanelStudio
An extensible and customizable GUI API/library to create ClickGUIs, HUDEditors and TabGUIs designed for use in Minecraft utility mods. This library consists of multiple artifacts: the PanelStudio core library and the PanelStudio-MC library. The PanelStudio core library has no dependencies aside from the JRE itself and works on any environment, including non-Minecraft, non-OpenGL applications and any Minecraft version. The PanelStudio-MC library contains Minecraft-specific functions. There are PanelStudio-MC versions for Minecraft Forge 1.12.2, FabriMC 1.16.5, Minecraft Forge 1.16.5, Legacy Fabric 1.8.9, Minecraft Forge 1.8.9, FabricMC 1.17.1/1.18.2, 1.19.2, 1.19.4, and 1.20.
Also visit the GitHub repository for the source code and instructions.