public static TextTooltip makeTooltip(String text, TooltipManager manager, TextTooltipStyle style) {
        // this calls setStyle() as its last line, but we need to run some code before that.
        TextTooltip tooltip = new TextTooltip(text, manager, style);

        // in 1.10.0, tooltips were centered, but in 1.11.0... it doesn't seem like it.
        // this still doesn't seem to center things correctly... the max width may be wrong.
        tooltip.getActor().setAlignment(Align.center);

        // this was used in libGDX 1.10.0, but was removed from 1.11.0, causing problems with some tooltips.
        tooltip.getContainer().width(new Value() {
            public float get (Actor context) {
                return Math.min(tooltip.getManager().maxWidth, tooltip.getActor().getGlyphLayout().width);
            }
        });

        // not sure this is needed; it doesn't seem to be.
//        if(tooltip.getActor().getWrap())
//            tooltip.getContainer().maxWidth(style.wrapWidth);

        return tooltip;
    }
Needed starting in libGDX 1.11.0 to create TextTooltip widgets that wrap correctly.
@param text the text to show
@return a new TextTooltip that should act correctly.
core/src/com/ray3k/skincomposer/Main.java