Jface--FullScreent No Use [message #1463854] |
Fri, 07 November 2014 00:58 |
zhang lei 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
|
|
|
Powered by
FUDForum. Page generated in 0.03331 seconds