> an easy way to display text
> in a box and have the box automatically detect and highlight URLs, then
> raise an event if the user clicks on the URL.
Format it as HTML and drop it in a JEditorPAne
with an HyperlinkListener attached.

Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Michael Brown - 21 Jul 2004 23:52 GMT
> > an easy way to display text
> > in a box and have the box automatically detect and highlight URLs, then
> > raise an event if the user clicks on the URL.
>
> Format it as HTML and drop it in a JEditorPAne
> with an HyperlinkListener attached.
Thanks, but how does this play with SWT/JFace? Isn't JEditorPane a Swing
thing? I haven't seen this in my SWT 2.1 docs. I'm working with a SWT app
and want to stick with SWT for cross-platform native look-and-feel.
Mike
Andrew Thompson - 22 Jul 2004 01:28 GMT
(JEdtiorPane)
> Thanks, but how does this play with SWT/JFace?
Doesn't, merely an 'existing alternative'.

Signature
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Michael Brown - 23 Jul 2004 02:03 GMT
OK, thanks again.
I've discovered I can embed Swing things into SWT widgets, so there might be
some hope of doing this. But alas, the docs don't indicate this works for
all platforms I need to support. Oh well...
Mike
> (JEdtiorPane)
> > Thanks, but how does this play with SWT/JFace?
>
> Doesn't, merely an 'existing alternative'.
Dick Wad - 23 Jul 2004 12:38 GMT
Why not use the SWT Browser widget?
Dick