text with link

hi!

is possible to append text to a textArea and the text become a link. i want to click in text append in textArea and go to a exactly location like C:\.

did i make my self clear? :)

[202 byte] By [Taigoa] at [2007-11-27 11:14:37]
# 1

You cant use JTextArea. Use JEditorPane or JTextPane. In this case you'll be using HTML for formatting.

Then attach a HyperlinkListener to the component to listen for link events. Example in JEditorPane documentation.

ICE

icewalker2ga at 2007-7-29 14:07:56 > top of Java-index,Desktop,Core GUI APIs...