Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] splashscreens?

As far as I can tell, there's no way to produce splashscreen-like windows in SWT. Specifically, I'm looking for a way to display a borderless window in the middle of the screen. Am I wrong (I hope)?

Have you tried...

        shell = new Shell(SWT.NO_TRIM);

You can get the size of the display with...

        Display.getDefault().getBounds();

Based on that and the size of your window, you can center it using...

        shell.setBounds(x, y, width, height);

-Eric



Back to the top