this.display = display;
this.initializer = initializer;
splash = new Shell(display, SWT.NULL);
splash.setText("Azureus");
Utils.setShellIcon(splash);
GridLayout layout = new GridLayout();
layout.numColumns = 1;
layout.horizontalSpacing = 0;
layout.verticalSpacing = 0;
layout.marginHeight = 0;
layout.marginWidth = 0;
splash.setLayout(layout);
Label label = new Label(splash, SWT.NONE);
label.setImage(ImageRepository.getImage("azureus_splash"));
currentTask = new Label(splash,SWT.BORDER);
GridData gridData = new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL);
currentTask.setLayoutData(gridData);
currentTask.setBackground(ColorCache.getColor(display, 255, 255, 255));
currentTask.setText("(: Azureus :)");
this.percentDone = new ProgressBar(splash,SWT.HORIZONTAL);
this.percentDone.setMinimum(0);
this.percentDone.setMaximum(100);
gridData = new GridData(GridData.FILL_HORIZONTAL);
this.percentDone.setLayoutData(gridData);
splash.pack();
splash.layout();
Utils.centreWindow(splash);
splash.open();
if (initializer != null) {
initializer.addListener(this);
}