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


Please give some solution.

Thank you by


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.