Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » IFRAME inside Browser Widget
IFRAME inside Browser Widget [message #446258] Mon, 22 November 2004 22:01 Go to next message
Kalman Hazins is currently offline Kalman HazinsFriend
Messages: 76
Registered: July 2009
Member
Hi, all.

Is it possible to have an <IFRAME> inside the Browser Widget? When I try to
use it - it opens up its own page.

Any ideas?

Thanx,
- Kalman
Re: IFRAME inside Browser Widget [message #446304 is a reply to message #446258] Tue, 23 November 2004 13:20 Go to previous message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
Works here. Regular links open inside the iframe. Please paste details or
open a PR with simple code to reproduce.
Chris

import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.browser.*;

public class PRBrowser {

public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("PRBrowser");
shell.setLayout(new FillLayout());
Browser browser = new Browser(shell, SWT.NONE);
browser.setText("<html><body>><iframe
src=\" http://www.eclipse.org/articles/Article-small-cup-of-swt/poc ket-PC.html\"></iframe></body></html>");
shell.open();

while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
}
}
Previous Topic:SWT Table: split and scroll?
Next Topic:Any documentation about Properties in SWT?
Goto Forum:
  


Current Time: Thu Apr 25 11:36:32 GMT 2024

Powered by FUDForum. Page generated in 0.02949 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top