JEditorPane, so if you already have code that relies on it, it is easy
to change. For example if you had the following.
JEditorPane editorPane = new JEditorPane();
editorPane.setEditable(false);
editorPane.setPage("http://www.yahoo.com");
You could change it to the following.
WWEEditorPane editorPane = new WWEEditorPane();
editorPane.setEditable(false);
editorPane.setPage("http://www.yahoo.com");
Further, if you wanted to make use of the integrated JTidy you would do
the following.
WWEEditorPane editorPane = new WWEEditorPane(true);
editorPane.setEditable(false);
editorPane.setPage("http://www.yahoo.com");
-Matt
On Feb 2, 2004, at 7:36 PM, Rob Rohan wrote:
> On Mon, 2004-02-02 at 16:14, Matt Liotta wrote:
> > > Neither are 99% of the web applications out there - look at yahoo
> or
> > > googles view source - its a damned mess! I think the lame preview
> > > function in java is a road block, but I think w3c compliance,
> > > unfortunately, is not really a factor.
> > >
> > You misunderstand my point. Currently, the JDK only supports HTML 3
> and
> > CSS 1. Whether sites are compliant with the latest W3C specifications
> > or not isn't important. What is important is that any HTML renderer
> be
> > able to correctly render the latest W3C specifications. With support
> > for only HTML 3 and CSS 1, you will find that very few sites render
> > very well.
> Ah, we are talking about the same thing then. The JEditorPane renders
> html badly (I said preview but that is technically inaccurate).
>
> > Our replacement renderer for the JDK fixes this by supporting the
> > latest W3C specifications. Now that is not to say there aren't issues
> > with it. For example, it does have a good bit of problems with
> > malformed HTML, but we hope to fix that in the future. And, with the
> > current integration of JTidy we are able to do surprisingly well now.
> JTidy (and Tidy) is the bomb. I'll have to check out your component as
> the Editor Pane is a thorn in my side :)
>
> --
> Vale,
> Rob
>
> Luxuria immodica insaniam creat.
> Sanam formam viatae conservate!
>
> http://www.rohanclan.com
> http://treebeard.sourceforge.net
> http://ashpool.sourceforge.net
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

