• Post Reply Bookmark Topic Watch Topic
  • New Topic

Applying CSS in HTMLEditorKit

 
Pramod Chris
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using HTMLEditorKit to edit an HTML page which is displayed in a JTextPane, and well, I'm doing this for the first time and I have two queries here,
I want to know how I can apply a CSS to this displayed HTML and also by any chance does the HTMLEditorKit have any problems with hiding commented lines in the HTML? The displayed pages show all the commented lines.

Thanks in advance.
 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please post some code...
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!