This repository packages the Java translation of raygui 3.5 produced by mir2j, so you can use raygui as a regular Java library with no JNI / native bindings. The goal is to make immediate-mode GUI controls available anywhere a JVM runs.
The current backend is Swing. You can add others quickly by implementing this small backend interface.
See the demo source for a quick start and a tour of the API.
- Pure Java: no native code, no platform toolchains.
- Immediate-mode API: mirrors raygui 3.5 entry points.
- Pluggable backends: bring your own renderer/toolkit by implementing Backend.
- Portable: runs anywhere a JVM runs
git clone https://github.com/glegris/raygui4j.git
./compile-raylib4j.sh
# produces raygui4j.jar
Grab the jar from Releases
Run the demo from the built (or downloaded) jar:
java -jar raygui4j.jar
- raygui is © Ramon Santamaria, licensed under the zlib/libpng license.
- The generated Java artifacts retain the original license terms.
- raygui4j is licensed under the MIT license