SWT Full screen

The best way to achieve this is to open a shell and fill the screen :

	Shell shell = new Shell(SWT.NO_TRIM | SWT.ON_TOP);
	shell.setLayout(new FillLayout());
	shell.setBounds(Display.getDefault().getPrimaryMonitor().getBounds());

This works great on Win32 and Linux. On OSX, you can’t get rid of the dock and the menu bar. See : this bug report on Eclipse bugzilla.






View Comments to “SWT Full screen”

  1. การกำหนด Full Screen ให้กับ SWT « Open source for developer Says:

    [...] ที่มา  [...]

Leave a comment

Use your gravatar account to get your photo displayed with your comment.

blog comments powered by Disqus