[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-swt-dev] SWT Browser: Executing Applets not working
|
Hi SWT-Guys,
When I try to open a webpage within an SWT Application (Browser) I get
an Warning message from the Internet Explorer 8 saying "At least one
Active-X Controll Element is not displayed." Opening the same page in
a normal Internet Explorer environment everything is shown correctly.
I also checked the points from here
http://www.eclipse.org/swt/faq.php#browserapplets
but still the same thing.
Is there an option to disable/bypass all security features for the
Internet Explorer, so that
the applet within the page is executed correctly?
Here is the code that I used to reproduce the problem:
@Test
public void testSWTBrowserApplet() {
//Checked: http://www.eclipse.org/swt/faq.php#browserapplets
//Using IE8
//Java 1.6.0_16
//Windows XP SP3
//SWT 3.655
Display display = new Display();
Shell shell = new Shell(display);
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 1;
shell.setLayout(gridLayout);
GridData data;
Browser browser;
try {
browser = new Browser(shell, SWT.NONE);
} catch (SWTError e) {
display.dispose();
return;
}
data = new GridData();
data.horizontalAlignment = GridData.FILL;
data.verticalAlignment = GridData.FILL;
data.horizontalIndent = 1;
data.grabExcessHorizontalSpace = true;
data.grabExcessVerticalSpace = true;
browser.setLayoutData(data);
shell.open();
browser.setUrl("http://www.javatester.org/version.html");
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
shell.dispose();
}
Thanks
Sebastian