This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 8434

What do you get for


[Donate a pint, save a life!] [How to ask questions] [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: 19216

Do you use a proxy server in your browser?


SCJP 1.4 - SCJP 6 - SCWCD 5
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: 8434

This might help
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Not able to open links from JEditorPane
 
Similar Threads
Wrong font size in JEditorpane
JSplitPane, some help please
UnknownHostException in JEditorPane
Creating Browser Window ..
Local HTTP file question