Hi folks,

I have a little problem with changing a ToolTip text. My code looks like the following:

Code:
final IconButton downIcon = new IconButton("bullet_down_icon");

final ToolTipConfig downToolTipConfig = new ToolTipConfig("expand");
final ToolTip downToolTip = new ToolTip(downIcon, downToolTipConfig);

SelectionListener<ComponentEvent> sl =  new SelectionListener<ComponentEvent>() {

    @Override
    public void componentSelected(ComponentEvent ce) {
        if (downIcon.getStyleName().contains("bullet_down_icon")) {
            downIcon.changeStyle("bullet_up_icon");
            downToolTipConfig.setText("minimize");
            downToolTip.update(downToolTipConfig);
            System.out.println(downToolTipConfig.getText());
        }
        else {
            downIcon.changeStyle("bullet_down_icon");
            downToolTipConfig.setText("expand");
            downToolTip.update(downToolTipConfig);
            System.out.println(downToolTipConfig.getText());
        }
    }
};
downIcon.addSelectionListener(sl);
Previously I didn't work with an extra ToolTip object but used getToolTip() and setToolTip(). However, when calling downToolTipConfig.getText() like in the code above the correct text will be returned to console but when moving the mouse curser above the icon, the tooltip itself still has it's original text.

Is this a bug or what did I wrong?

Thanks for your help!

-Sebastian