• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JEditorPane and css - will a custom EditorKit make it work?

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there

I am working on generating html from text pages with the final part being to place them in a JEditorPane.

I am using StyleSheets and when I look at a hyperlink in IE, it is not underlined. But when I look at the same hyperlink in the JEditorPane, it is underlined.

Does the JEditorPane interpret css in a different way? I have looked on the internet and found a site explaining how to use the HTMLEditor and EditorKits but I could not find out if using them will solve this.

Any help would be much appreciated.
Many kind regards,
Rachel
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JEditorPane only supports css to a limited extent. It seems that it's styling things keyed on an HTML.Tag.A, i.e. it will apply A{text-decoration:none} but not A:link{text-decoration:none}

If you really need to chase it then ask on http://www.javadesktop.org/forums/category.jspa?categoryID=2 and someone from the Swing team may reply
 
All of the following truths are shameless lies. But what about this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic