Browser browser = new Browser(shell, SWT.NONE);
browser.setUrl("localhost");
browser.addProgressListener(new ProgressListener() {
@Override
public void completed(ProgressEvent event) {
shell.redraw();//useless }
@Override
public void changed(ProgressEvent event) {
}
});
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
我需要调整大小窗口才能显示页面!!线" while(!shell.isDisposed())"很难看 如何在不调整大小的情况下显示页面?