Web Browser
Hey all,
I need to build a Web Browser as a part of a project.
JEditorPane that takes a URL and displaying it. but the result was so poor that some contents of the displayed page appears corrupted and other even dont appear.
So, what's the formal way to make things professional as if you were using a standard web browser.
URL url =new URL(field.getText());
JEditorPane pane =new JEditorPane();
pane.setPage(url);
Message was edited by:
mipsme
[570 byte] By [
mipsmea] at [2007-10-3 9:52:39]

>So, what's the formal way to make things professional >as if you were using a standard web browser.If you are going to write you own web browser then you better get started if you want to finish during your lifetime.Otherwise, just use JEditorPane.
okay all i need is a VERY basic web browser :
- JFrame containing JTextField in the north and displaying area in the center
- write ur URL in the JTextField and the page to be displayed in the center.
as I told you JEditorPane didnt work properly so i'm asking about another technique to do only displaying a web page !
Message was edited by:
mipsme
> with JEditorPane some contents of the page appear
> corrupted and sometimes they even dont appear so how
> could i solve this issue !
Again re-read my replies. JEditorPane is not a web browser. It can display some content. If you want a Java web browser you will need to write you own.
We are trying to create a web browser using the WebBrowser class (https://jdic.dev.java.net/nonav/documentation/javadoc/jdic/org/jdesktop/jdic/browser/WebBrowser.html).
We can't figure out how to import the WebBrowser class.
We used the code:
package org.jdesktop.jdic.browser;
import org.jdesktop.jdic.browser.WebBrowser;
but it didn't work. Thanks for your help!