Style for label is reset

Hi,

I created a label which will be displayed when I click a button. The label is using Chameleon theme. However, clicking the button twice seems to reset the style. (The first click shows the error label. The second click shows a plain text label.

Here’s my label code.

Label myLabel = new Label(“Error”);
myLabel.addStyleName(ChameleonTheme.LABEL_ERROR);

It doesn’t seem to happen if I use the following.

Label myLabel = new Label(“Error”);
myLabel.addStyleName(ChameleonTheme.LABEL_WARNING);

Any idea? Thanks.