Window.headerStyle doesn't affect title

Using Firefox 3.6.6 and SmartGWT version 2.2, I can set the headerStyle on a Window widget and the background-color property in the corresponding css style will be applied to the window header bar, but the text won’t correspond with the “color” property. I suspect it may have to do with the text being a Label object or something that doesn’t actually inherit its styling from the general “color” property, but rather has its own style information?

The code would look like:
Window window = new Window();
window.setHeaderStyle(“formattedWindowHeader”);

And in “my.css”:
.formattedWindowHeader{
background-color: red;
color: #FFFFFF;
}

This results in a window with a bright red header bar as expected, but dark text (rather than white as it should be). Help!

I too am having the same issue with version 2.4… awaiting a response.

hi

This may be a late response,i too search the solution for this problem and i found out the answer for that problem

after applying setheaderstyle()
u have to put setShowHeaderBackground(true)

Then only the style will be applied ..
Hop others can use of it