final Display display = browser.getShell().getDisplay();
final Shell shell = new Shell(browser.getShell(), SWT.DIALOG_TRIM
| SWT.APPLICATION_MODAL);
// create widgets
final SWTXHTMLRenderer xhtml = new SWTXHTMLRenderer(shell, SWT.NONE,
new BrowserUserAgent(display));
final Button close = new Button(shell, SWT.PUSH);
close.setText("Close");
shell.setDefaultButton(close);
close.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {