browser widget on AIX platform [message #447131] |
Wed, 08 December 2004 18:30  |
Eclipse User |
|
|
|
Has anyone run the browser widget on an AIX platform?
I tried running it, and i got the following error:
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:2717)
at org.eclipse.swt.SWT.error(SWT.java:2616)
at org.eclipse.swt.SWT.error(SWT.java:2587)
Here is the snippet of my application:
public static void main(String[] args) {
final Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
Browser browser = null;
try {
browser = new Browser(shell, SWT.NONE);
} catch (SWTError e) {
}
if (browser != null) {
browser.setUrl("http://www.eclipse.org");
}
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03415 seconds