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]
# 1
>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.
zadoka at 2007-7-15 5:10:10 > top of Java-index,Desktop,Core GUI APIs...
# 2

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

mipsmea at 2007-7-15 5:10:10 > top of Java-index,Desktop,Core GUI APIs...
# 3
> as I told you JEditorPane didnt work properly so i'm> asking about another technique to do only displaying> a web page !Re-read my first reply.JEditorPane is going to be as good as gets unless you want to write your own.
zadoka at 2007-7-15 5:10:10 > top of Java-index,Desktop,Core GUI APIs...
# 4
with JEditorPane some contents of the page appear corrupted and sometimes they even dont appear so how could i solve this issue !
mipsmea at 2007-7-15 5:10:10 > top of Java-index,Desktop,Core GUI APIs...
# 5

> 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.

zadoka at 2007-7-15 5:10:10 > top of Java-index,Desktop,Core GUI APIs...
# 6
JEditorPane displays basic HTML fairly well. It has no support for any scripting (i.e. JavaScript) or embedded objects like Flash or Applets. I'm not sure if it supports CSS stylesheets or not.Can you post the URL that you are trying to get JEditorPane to display?
jds@ku.edua at 2007-7-15 5:10:10 > top of Java-index,Desktop,Core GUI APIs...
# 7
Check out the JDIC WebBrowser component. It's way better than JEditorPane
tjacobs01a at 2007-7-15 5:10:10 > top of Java-index,Desktop,Core GUI APIs...
# 8

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!

wigster0007a at 2007-7-15 5:10:10 > top of Java-index,Desktop,Core GUI APIs...