If I wasn't nearing the end of the project, I would seriously have second thoughts of using Java / Swing.  Although, I might have a look at SWT. 

Because I believe it is
javax.swing.text.html.CSS
that is the problem.  So if SWT has a better / fully implementation of it, that might be the best bet.

later
Roger...



At 09:59 PM 6/18/2003, you wrote:
What a great example this is for open sourcing Swing.  I wonder how many people Sun has devoted to Swing.  Anyone go to the "Meet the Swing team" BOF at JavaOne?

Bill

On Wednesday, June 18, 2003, at 10:36 AM, Roger Lacroix wrote:

Hi,

Oh, this project is giving me a headache.  I searched the BugParade for 'JEditorPane CSS' and got 792 problems.  # 2 on the list describes my problem - dated Feb 27,2001 with the comment "Request For Enhancement". Ahhhhhhhhhhhhhhhhh. 

I see they haven't got around to it.  In researching my problem, I found comments somewhere (?!?) that about half of CSS1 is implemented and nothing for CSS2.

Sometimes I wonder if I should have gone with the 'evil empire' and build a C# .NET solution.  :)

later
Roger...


At 10:46 AM 6/18/2003, you wrote:

http://developer.java.sun.com/developer/bugParade/
 

James Stauffer
-----Original Message-----
From: Roger Lacroix [
mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 18, 2003 9:40 AM
To: jdjlist
Subject: [jdjlist] Re: JEditorPane, CSS, HTML problem

Hi,

I'm using v1.4.1_03 of the JVM.  What bug parade / web site are you referring to?

Thanks
Roger...

At 06:20 AM 6/18/2003, you wrote:

A couple things:
 
    1) What version of the JVM are you using?
    2) It is known that the HTML renderer included in the JVM does have some bugs. It is possible that this is one of them. So, have you checked Bug Parade?
 
Paul Franz

----- Original Message -----
From: Roger Lacroix
To: jdjlist
Sent: Tuesday, June 17, 2003 5:39 PM
Subject: [jdjlist] JEditorPane, CSS, HTML problem
Hi,
I am using setEditorKit(new HTMLEditorKit()) with a JEditorPane to render / display a HTML file.  The HTML has a stylesheet with it.
The HTML file has a table in it. When I try to use the CSS values of

TABLE.black-border { border-width:1px;
                     border-color:black;
                     border-collapse: collapse;
                   }
tr.bb-test { border-width:1px;
             border-color:black;
             border-style:solid;
             border-collapse: collapse;
           }
td.bb-medium { border-collapse: collapse;
               border-width:1px;
               border-color:black;
             }
<TABLE class=black-border WIDTH=100%>
<TR>
<TD class=bb-medium WIDTH=10%>TEST</TD>
<TD class=bb-medium WIDTH=25%>TEST Number</TD>
<TD class=bb-medium WIDTH=55%>POLICY Range</TD>
<TD class=bb-medium WIDTH=10%>DEST DATE</TD>
</TR>
<TR class=bb-test>
<TD class=bb-medium COLSPAN=4>item 1</TD>
</TR>
<TR class=bb-test>
<TD class=bb-medium COLSPAN=4>item 2</TD>
</TR>
</TABLE>

No matter what I set the border-width to (1, 10, 100), it always comes out as a thick border (same size) in the JEditorPane.   But in a web browser, 1, 10 or 100px border looks correct.
When I try to set the individual borders (i.e.  border-top-width ), the JEditorPane shows no border at all (as if it is invalid keyword).  
Does anybody know what the problem is?  Any help would be appreciated.
Thanks
Roger... ---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk

---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk

---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk ---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk

---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk
</blockquote></x-html>
---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk





Reply via email to