Lemur¶
Lemur is a community UI module for jMonkeyEngine. It provides components such as labels, buttons and containers, along with layouts and styling. Because its components are scene-graph spatials, you can use Lemur for conventional screen-space interfaces as well as interfaces placed in a 3D scene.
Getting started¶
Select Lemur as a community module in the Initializer, or follow the installation instructions in its Library entry. After the application starts, initialize Lemur and add components to the GUI node:
import com.simsilica.lemur.Container;
import com.simsilica.lemur.GuiGlobals;
import com.simsilica.lemur.Label;
// Inside simpleInitApp():
GuiGlobals.initialize(this);
Container panel = new Container();
guiNode.attachChild(panel);
panel.setLocalTranslation(100, cam.getHeight() - 100, 0);
panel.addChild(new Label("Hello, jMonkeyEngine!"));
Lemur components grow down from their upper-left corner. The example creates a panel and a label; you can add buttons, arrange components with layouts and respond to user actions. Components have no default visual styling until a style is configured. Lemur includes a Glass style, whose style loader requires Groovy; see the official setup guide before enabling it.
For the next steps, see the official Getting Started guide, Lemur documentation and project overview. The Library lists other community UI modules.