Embed « JTextPane « Java Swing Q&A





1. Selection of embedded items in a JTextPane    stackoverflow.com

A JTextPane lets you embed JComponents and images. When you select a section of the document the text is highlighted but the embedded items are not. You can have ...

3. JTextPane+embed a hyperlink    forums.oracle.com

You must add a Hyperlink listener, then deal with the event when it occurs. How you deal with the event is up to you, but it is possible to open up the users default browser to the specified url. I can't seem to find the code now, but there are snippets out there to do this, just google