How to set style to particular subwindow in vaadin

Hi all,

In my vaadin application, i have to set some style to subwindow. If i set style to window , then it would apply to all of other sub windows in the application.
How do i apply style particular sub window ?. Following is my style named as newColor

.v-window,
.v-window-black
.v-window-closebox,
.v-window-contents,
.v-window-dialog,
.v-window-error
.v-window-footer,
.v-window-header
.v-window-footer-noresize,
.v-window-light,
.v-window-modalitycurtain,
.v-window-outerheader,
.v-window-resizebox,
.v-window-resizebox-disabled,
.v-window-wrap,
.v-window-wrap2-newColor
{
background-color:#ffaa90;
}

Please give some solution.

Thank you by

RAJESH THANGA

You need to add a style name to the window, using the server side addStyleName method after creating the Window. You can then add separate CSS rules for the style name you used to distinguish that window from other windows.