Results 1 to 3 of 3
- 06-04-2009, 09:32 AM #1
Member
- Join Date
- Jun 2008
- Location
- Australia
- Posts
- 43
- Rep Power
- 0
How to create a hyperlink from a text in Java
Hello,
Is there any available/example of source codes that makes a text have the ability to link itself.
Upon clicking the text, a browser will open and redirect to http: // www. link.com
Yes, I already have the idea that I'll be using a JEditorPane. :confused: What I would like to ask is to give me at least a set of codes on how does it work. Thanks.
Your help is highly appreciated.Last edited by javanewbie; 06-04-2009 at 09:36 AM.
- 06-04-2009, 10:14 AM #2
You're on the right track. Use a JEditorPane with setEditable(false) and a HyperlinkListener.
db
- 06-05-2009, 02:12 PM #3
Similar Threads
-
How to write a hyperlink in properties file?
By MAGNUM in forum New To JavaReplies: 1Last Post: 02-12-2009, 04:16 AM -
Hyperlink in swing
By aneesahamedaa in forum AWT / SwingReplies: 1Last Post: 07-28-2008, 03:41 PM -
[SOLVED] Hyperlink
By Mir in forum New To JavaReplies: 91Last Post: 07-09-2008, 11:37 AM -
Hide hyperlink address on status bar
By simon in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 07-24-2007, 10:34 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks