public StandardWidgetToolkit(String... commandLineArgs) {
this.swtRunnableFactory = RUNNABLE_FACTORY_OVERRIDE != null ? RUNNABLE_FACTORY_OVERRIDE : this;
this.commandLineArgs = commandLineArgs;
display = new Display();
shell = new Shell(display);
shell.setText("OAuth 2.0 Authorization Request");
shell.setLayout(new FillLayout());
Monitor monitor = display.getPrimaryMonitor();
Rectangle bounds = monitor.getBounds();
Dimension size = new Dimension((int) (bounds.width * 0.25), (int) (bounds.height * 0.55));
shell.setSize(size.width, size.height);
shell.setLocation((bounds.width - size.width) / 2, (bounds.height - size.height) / 2);
Browser browser = new org.eclipse.swt.browser.Browser(shell, SWT.ON_TOP);
swtInterceptingBrowser = new SwtInterceptingBrowser(browser, display, shell);
}
StandardWidgetToolkit.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:oauth2-useragent
作者:
评论列表
文章目录