shell = new Shell( display, SWT.NO_TRIM | SWT.NO_BACKGROUND | SWT.ON_TOP );
shell = new Shell( display, SWT.NO_TRIM | SWT.NO_BACKGROUND );
	public Splash( Display aDisplay, int barSize ) {		display = aDisplay;				shell = new Shell( display, SWT.NO_TRIM | SWT.NO_BACKGROUND | SWT.ON_TOP );		shell.setLayout( new FormLayout() );		shell.setImage(G2GuiResources.getImage("TrayIcon"));		final Image image = G2GuiResources.getImage("splashScreen");		shell.addPaintListener( new PaintListener() {				public void paintControl( PaintEvent e ) {					e.gc.drawImage( image, 0, 0 );				}			} );					//TODO label is disabled because no transparent control is possible and therefore the splash looks ugly...		// one solution: create a new image with the underlying image area to use it as a bg for the label		// remember that the label is uncommented in increaseSplashBar() and dispose() too		/*				// set the location of the text		label = new Label( shell, SWT.NONE );		FormData formData = new FormData();		formData.left = new FormAttachment( 0, 150 );		formData.right = new FormAttachment( 100, -150 );		formData.bottom = new FormAttachment( 100, -25 );		label.setLayoutData( formData );		*/				// set the location of the bar		bar = new ProgressBar( shell, SWT.NONE );		bar.setMaximum( barSize );		FormData formData = new FormData();		formData.left = new FormAttachment( 0, 5 );		formData.right = new FormAttachment( 100, -5 );		formData.bottom = new FormAttachment( 100, -5 );		bar.setLayoutData( formData );		shell.pack();		// set the size on the splash		Rectangle displayBounds = display.getPrimaryMonitor().getBounds();		Rectangle imageBounds = image.getBounds();		shell.setBounds(			displayBounds.x + ( ( displayBounds.width - imageBounds.width ) / 2 ),			displayBounds.y + ( ( displayBounds.height - imageBounds.height ) / 2 ),			imageBounds.width, imageBounds.height);		shell.open();	}