private void showHints() {
        guiFont = assetManager.loadFont("Interface/Fonts/Default.fnt");
        int numLines = 3;
        BitmapText lines[] = new BitmapText[numLines];
        for (int i = 0; i < numLines; ++i) {
            lines[i] = new BitmapText(guiFont);
        }

        String p = "Test for jMonkeyEngine issue #1125";
        if (isNativeBullet()) {
            lines[0].setText(p + " with native Bullet");
        } else {
            lines[0].setText(p + " with JBullet (may yield false success)");
        }
        lines[1].setText("Use W/A/S/D/Q/Z/arrow keys to move the camera.");
        lines[2].setText("F5: render stats, C: camera pos, M: mem stats");

        float textHeight = guiFont.getCharSet().getLineHeight();
        float viewHeight = cam.getHeight();
        float viewWidth = cam.getWidth();
        for (int i = 0; i < numLines; ++i) {
            float left = Math.round((viewWidth - lines[i].getLineWidth()) / 2f);
            float top = viewHeight - i * textHeight;
            lines[i].setLocalTranslation(left, top, 0f);
            guiNode.attachChild(lines[i]);
        }
    }
Initialize the height data during startup.
jme3-examples/src/main/java/jme3test/bullet/TestIssue1125.java