The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
import-bot (20211) [Avatar] Offline
#1
[Originally posted by hly1221]

Hi,there:

Now I am doing a program. I want in text pane, connect a specific word such
as "Yahoo" to yahoo web site ("http://www.yahoo.com"). When I click the word
"Yahoo", then will open a new brower or a new frame. I am wondering whether we
can do it.

Thank you very much.

liying
import-bot (20211) [Avatar] Offline
#2
Re: How to connect to web site in JTextPane?
[Originally posted by matt]

See chapter 11 here:

http://www.spindoczine.com/sbe

You can build an HTML file with the link embedded and load
it into a JTextPane.