I am writing an application and in that I am using JTextArea to display some text. Now I want to show some clickable URL in text area along with the normal text and I want if user click on the URL then the web page that URL referring to should open in new web browser window.
I am writing an application and in that I am using JTextArea to display
Share
Use JEditorPane with HTMLEditorKit or JTextPane and set content type to “text/html”