Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes Not able to open links from JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Not able to open links from JEditorPane" Watch "Not able to open links from JEditorPane" New topic
Author

Not able to open links from JEditorPane

Anuj Joshi
Greenhorn

Joined: Feb 05, 2009
Posts: 22
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

Joined: Jul 26, 2007
Posts: 10167
    
    8

What do you get for


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Anuj Joshi
Greenhorn

Joined: Feb 05, 2009
Posts: 22
event.getURL() : URL address on which I have clicked.
getting exact address of URL.

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Do you use a proxy server in your browser?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Anuj Joshi
Greenhorn

Joined: Feb 05, 2009
Posts: 22
Yes I have used a proxy server in my browser
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

This might help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to open links from JEditorPane
 
Similar Threads
UnknownHostException in JEditorPane
JSplitPane, some help please
Wrong font size in JEditorpane
Local HTTP file question
Creating Browser Window ..