aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Problem in html type of data in JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem in html type of data in JEditorPane" Watch "Problem in html type of data in JEditorPane" New topic
Author

Problem in html type of data in JEditorPane

Neha D
Ranch Hand

Joined: Oct 12, 2004
Posts: 32
Hi,

I am using a JEditorPane for displaying text which is in an html form. I have written the html tags in the java code itself. The code also contains css inline style for reducing the gap between successive rows of an html table.
When i run this html code in a browser I am able to see the changes which are made using css for line-height. But the same code when written in java doen not reflect me any changes regarding the line-height. All other css parameter values such as color,etc. can be seen working properly in the JEditorPane.

The only change JEditorPane cannot reflect is the line-height value of css for successive row gap.

Can anyone plz help me out with this.
Help will be heartedly appreciated.

Thanx
NDT
Scott Presley
Greenhorn

Joined: Apr 15, 2003
Posts: 25
I've ran into problems in the past with HTML/CSS in the JEditor... java only supports HTML v3.2. You might want to check out the HTML v3.2 Spec to see if the CSS you're using is supported.

Hope this helps,
-SP
Neha D
Ranch Hand

Joined: Oct 12, 2004
Posts: 32
Hi Scott
Thanx a lot for ur reply.
I went thr' HTML v3.2 Specifications.
Can you suggest me some other way to resolve this problem? How had you overcome this problem when you had encountered it?

Thanx.
Regards,
NDT.
 
 
subject: Problem in html type of data in JEditorPane