Image image = Resources.getIconImage(display); image.setBackground(lblIcon.getBackground());
Image image = Resources.getIconImage(display, lblIcon.getBackground());
  public AccountDialog(Display display, TrackDatabase trackDatabase, DownloadThread downloadThread) {    this.shell = new Shell(display);    this.trackDatabase = trackDatabase;    this.downloadThread = downloadThread;    this.display = display;    try {      shell.setImage(Resources.getIconImage(display));    }    catch (IOException e) {      e.printStackTrace();    }    shell.setText(getResourceString( "AccountDialog.Title.Account_Settings"));    shell.addShellListener(new ShellAdapter() {      public void shellClosed(ShellEvent e) {        done = true;      }    });      shell.setLayout(new GridLayout(1, false));    steps = new Composite(shell, SWT.NONE);    steps.setLayout(stackLayout);    Group group = new Group(steps, SWT.NONE);    controls[0] = group;    group.setText(getResourceString( "AccountDialog.Intro.Group"));    group.setLayout(new GridLayout(2, false));    Label lblIcon = new Label(group, SWT.NONE);    try {      Image image = Resources.getIconImage(display);      image.setBackground(lblIcon.getBackground());      lblIcon.setImage(image);    }    catch (IOException e) {      e.printStackTrace();    }    Label label = new Label(group, SWT.NONE);//    txt.setLayoutData(new GridData(GridData.FILL_HORIZONTAL| GridData.FILL_VERTICAL));    label.setText(getResourceString("AccountDialog.Intro"));        group = new Group(steps, SWT.NONE);    controls[1] = group;    group.setText(getResourceString( "AccountDialog.Settings.Group"));    label = new Label(group, SWT.NONE);    GridData data = new GridData(GridData.FILL_HORIZONTAL| GridData.FILL_VERTICAL);    data.horizontalSpan = 4;    label.setLayoutData(data);    label.setText(getResourceString("AccountDialog.Settings"));    createMain(group);        group = new Group(steps, SWT.NONE);    controls[2] = group;    group.setText(getResourceString( "AccountDialog.Communication.Group"));    createStatus(group);          Composite buttonComposite = new Composite(shell, SWT.NONE);    buttonComposite.setLayout(new RowLayout(SWT.HORIZONTAL));    buttonComposite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));      Button btnCancel = new Button(buttonComposite, SWT.NONE);    btnCancel.setText(getResourceString("AccountDialog.Button.Cancel"));      btnCancel.addSelectionListener(new SelectionAdapter() {      public void widgetSelected(SelectionEvent e) {        done = true;      }    });    createAcceptButton(buttonComposite);        stackLayout.topControl = controls[0];        shell.pack();    Point size = shell.getSize();    if (size.x < 320)      size.x = 320;    shell.setSize(size);//    shell.setLocation();        shell.open();    while (!done) {      if (!display.readAndDispatch())        display.sleep();    }    shell.close();    shell.dispose();    if (!success)      System.exit(0);  }