Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSWT Browser.setText() not working on linux
https://www.eclipse.org/forums/index.php/mv/msg/141866/446948/#msg_446948
I don't know whether I am doing something wrong, but Browser.setText()
does not show anything. This is on linux, I have Mozilla 1.6. Here is the
segment which I am attempting:
public void createPartControl(Composite parent)
{
browser = new Browser( parent, SWT.NONE );
browser.setText("Hello <b>joe</b>");
}
When I open the (RCP) application where this code is being invoked, the
browser window comes up empty.
I also downloaded the example RCP plugin into eclipse and followed
instructions from <a
href=" http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org. eclipse.ui.examples.rcp.browser/readme.html">here</a>:
The browser works fine, except when I replace the browser.setUrl() with
browser.setText(), nothing happens:]]>exquisitus2004-12-06T23:56:11-00:00Re: SWT Browser.setText() not working on linux
https://www.eclipse.org/forums/index.php/mv/msg/141866/446990/#msg_446990
> browser.setText("Hello <b>joe</b>");
with:
browser.setText("<html><body>Hello <b>joe</b></body></html>");