This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to hyper link a text in text area  RSS feed

 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I eas just wondeiring how I can hyper link some text in text area. The objective is not only linking this but also to open the default browser and take user to the said link.
Is it possible? How can I achieve this? Pl help.
regards,
Arun Mahajan
 
Rashid Ali
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Arun
For this purpose as far as i remember, you will have to use, the JTextPane() class instead of JTextArea(). I think this class support hyperlinks type of jobs.
Good luck
Rashid Ali
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!