Hi,

I've created a Dialog which I don't want the user to be able to close
as it is a splash screen that shows my application is initialising.

I've added a WindowStateListener which overrides the previewClosed()
method and returns Vote.DENY which does the trick:

        splash.getWindowStateListeners().add(new WindowStateListener.Adapter() {
            @Override
            public Vote previewWindowClose(Window window) {
                return Vote.DENY;
            }
        });
        splash.open(display, window, true, null);


However, I'd actually like to remove the 'close' dialog button all
together since I plan on closing it programmatically once the
application is ready to go.

I was hoping to find a 'closeable' attribute on the Dialog, but no
such luck.  I tried a Frame, but that has even more title bar
furniture and isn't centred.

I can see that this stuff is handled in the skin but ... there be
dragons - do you think title bar 'furniture' control should be part of
the API / WTKX (e.g. closeable, maximisable, minimizable attributes) -
or am I missing something?

Any ideas / suggestions?

Cheers,
Chris

Reply via email to