/**
* Creates a new instance.
*
* @param display
* @param monitor
*/
public MainSplash(Display display, Monitor monitor) {
this.version = Resources.getVersion();
this.splash = Resources.getSplash(display);
this.shell = new Shell(SWT.ON_TOP | (isMac() ? 0 : SWT.NO_TRIM));
this.shell.setImages(Resources.getIconSet(display));
this.shell.setSize(splash.getBounds().width, splash.getBounds().height);
// Center
SWTUtil.center(shell, monitor);
// Paint
shell.addPaintListener(new PaintListener(){
public void paintControl(PaintEvent arg0) {
paint(arg0.gc);
}
});
}
MainSplash.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:arx
作者:
评论列表
文章目录