Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Browser.setText() not working on linux
SWT Browser.setText() not working on linux [message #446948] Mon, 06 December 2004 23:56 Go to next message
exquisitus is currently offline exquisitusFriend
Messages: 211
Registered: July 2009
Senior Member
Hi All,

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:
Re: SWT Browser.setText() not working on linux [message #446990 is a reply to message #446948] Tue, 07 December 2004 13:44 Go to previous message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
It should work after you replace
> browser.setText("Hello <b>joe</b>");
with:
browser.setText("<html><body>Hello <b>joe</b></body></html>");

Chris
Previous Topic:Multipage Editor and Views
Next Topic:How does the map function works ?
Goto Forum:
  


Current Time: Tue Apr 23 14:20:52 GMT 2024

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

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

Back to the top