Java Swing : handling hyperlinks in JEditorPane

Reply

Join Date: Feb 2006
Posts: 1
Reputation: gmunky is an unknown quantity at this point 
Solved Threads: 0
gmunky gmunky is offline Offline
Newbie Poster

Java Swing : handling hyperlinks in JEditorPane

 
0
  #1
Feb 19th, 2006
I'm working on a program that opens an html text file using a JEditorPane. I can read in the html file but i can't get the hyperlinks to work. I want it so that when the user clicks on a hyperlink word, it will open a different html file in the same JEditorPane.Does anyone know how to do this? thanks
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 4
Reputation: skramath is an unknown quantity at this point 
Solved Threads: 0
skramath skramath is offline Offline
Newbie Poster

Re: Java Swing : handling hyperlinks in JEditorPane

 
0
  #2
Mar 10th, 2007
Originally Posted by gmunky View Post
I'm working on a program that opens an html text file using a JEditorPane. I can read in the html file but i can't get the hyperlinks to work. I want it so that when the user clicks on a hyperlink word, it will open a different html file in the same JEditorPane.Does anyone know how to do this? thanks

I m also In Having the same problem...Please Help....
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Java Swing : handling hyperlinks in JEditorPane

 
0
  #3
Mar 10th, 2007
you really think that kid will come back to do your homework for you when he's only posted that one message and that a year ago?
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 763
Reputation: Phaelax is on a distinguished road 
Solved Threads: 38
Phaelax Phaelax is offline Offline
Master Poster

Re: Java Swing : handling hyperlinks in JEditorPane

 
0
  #4
Mar 12th, 2007
The very first method listed in the JEditorPane API is the one you should be looking at.

addHyperlinkListener(HyperlinkListener listener)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC