How to disable "x" on upper right corner of Windows

I am using vaadin 6.8. I’d like to disable the “x” on Windows so user can’t close the window using that.
How do I do that? Thanks for any help.
I searched this forum and a 7 year old thread gave the following method:
.i-window-closebox {
display: none;
I put this in the styles.css file of my theme, but it didn’t work.
My entire css file is like this:
@import url(…/reindeer/styles.css);
.ess-label-big {
font-size: 14px;
line-height: normal;
.i-window-closebox {
display: none;
The label text font size change works so this css file is loaded. But the “x” on upper right corner of windows did not disappear.

Hi tony,
im not sure if this works but i think you don’t need css.
It definitely works in newer Vaadin versions.

Window window = new Window();