Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Jface--FullScreent No Use
Jface--FullScreent No Use [message #1463854] Fri, 07 November 2014 00:58
zhang lei is currently offline zhang leiFriend
Messages: 22
Registered: July 2012
Junior Member
import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class FullScreen extends ApplicationWindow {

	public FullScreen(Shell parentShell) {
		super(parentShell);
		// TODO Auto-generated constructor stub
		super.setShellStyle(SWT.NO_TRIM);
	}
	public  FullScreen() {
		// TODO Auto-generated constructor stub
		super(null);
		super.setShellStyle(SWT.NO_TRIM);
	}
	@Override
	protected void configureShell(Shell shell) {
		// TODO Auto-generated method stub
		super.configureShell(shell);
		shell.setFullScreen(true);
	}
	public static void main(String[] args) {
		FullScreen mainWindow = new FullScreen();
		mainWindow.setBlockOnOpen(true);
		mainWindow.open();
		Display.getCurrent().dispose();
	}
}

This is my code.In the configShell method,the shell.setFullScreen(true) do not work!why?how did I to ,thanks very much!

[Updated on: Fri, 07 November 2014 01:01]

Report message to a moderator

Previous Topic: Ubuntu Java Swt Browser Crash While creating webkit mutiple instance
Next Topic:How to debug this?
Goto Forum:
  


Current Time: Tue Apr 16 18:51:40 GMT 2024

Powered by FUDForum. Page generated in 0.21987 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top