JTextPane create hyperlinks

in my project, strings are entered in separate field n get displayed in JTextPanei want d strings get processed n to b checked if they r links like http://.....or www. ... if so they 've to b converted to hyperlinks.how do i achieve this..
[282 byte] By [manishmulani@nitka] at [2007-11-27 7:56:10]
# 1
Swing related questions should be posted in the Swing forum.You should be using a JEditorPane. Read the JEditorPane API. It shows you how to add a HyperlinkListener and has a link to the Swing tutorial on "Using Text Components" which has an example.
camickra at 2007-7-12 19:37:44 > top of Java-index,Java Essentials,Java Programming...