Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to open links from JEditorPane

 
Anuj Joshi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have added html page in JEditorPane. html page has some links.
When I open those links independantly i.e directly from html page then links are get opened.
but now I have added HTML page in JEditorPane. & from here links are not get opened.
& getting IOException........
java.net.ConnectException: Connection timed out: connect

Following is the code I have written for this.

Please check & give me appropriate solution.

i.e. Why I am not able to open links from JEditorPane.





reply soon
Thanks....
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you get for
 
Anuj Joshi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
event.getURL() : URL address on which I have clicked.
getting exact address of URL.

 
Rob Spoor
Sheriff
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you use a proxy server in your browser?
 
Anuj Joshi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I have used a proxy server in my browser
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic