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
Re: Need a link from Text(Strings)
[Originally posted by matt]

Yes, you can do this by passing your text as an HTML file to
JTextPane and attaching a HyperlinkListener to chage cards...

See chapters 11 and 27 at the following site for examples
of how to work with HTML, JTextPane, and HyperlinkListeners:

http://www.spindoczine.com/sbe
import-bot (20211) [Avatar] Offline
#2
[Originally posted by vpalkonda]

Hi
I have a some text in textArea in a dialog.
Like ex.."Action happens to traffic type from networkmaskPair to ..."

If you click on "Action" it got to take me to a specific card on the dialog
(I am using card Layout)

and if you click on traffic type it should take me to different card.
and so on.

I don't know whether this could be done or not

I know that editor pane supports html. but I don't know whether that will
solve my problem. because I need to update that text if the user changes
the data on the specific card. Like "action" can be permit or refuse.

I appriciate your help

Thank You
Vamshi