[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Need browser functionality without using system's default browser (swt.browser.*)

Hi everybody.

I am searching for a way to achieve the following: I want to display a small "in-program browser" to display simple HTML files.

At first I tried swt.browser.Browser but that didn't work very well. Under Linux the system's browser is only envoked properly, if certain environment variables are set accordingly (e.g. MOZILLA_FIVE_HOME). Even when this env-var is set, I still could imagine situations, where embedding the native browser would fail. For example if people only have Konqueror or only Opera installed.

For this reason I want to be completely platform independent (and independet of any other external programs that have to be installed).
I was thinking of something similar to JEditorPane in SWING that could be used to display HTML files and more importantly to allow hyperlinks to work.


So far I have not found a way to achieve this with any widget in the SWT package.

Some guys suggested I should use SWING's JEditorPane and use the AWT/SWING-SWT-Bridge to include it in my program. This is no option either as this bridge needs Java 1.5 to work under Linux and for certain other reasons I have to stick with 1.4.x

Can you suggest anything that allows me to display HTML files (if possible with images included) and use the hyperlinks to navigate between several pages?

Any help would be greatly appreciated.

TIA

Christian
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@xxxxxxx