[Swing] which is cheapest.. RTF or HTML rich text in JEditorPane?

  • Thread starter softwarepearls_com
  • Start date
S

softwarepearls_com

I'd like to display some body of text with a few coloured highlights..
and would like to use Swing's built-in support for rich text.

Q: which EditorKit (RTF or HTML) is the most lightweight/fastest? I
would guess that the HTML is the most expensive. Anyone with
experience of both?

BTW, I know about AttributedString etc.. but would like to keep it
higher-level than that.
 
S

softwarepearls_com

I haven't tried RTF, because HTML is easier for me to generate.  :)

I tried both ages ago, but I was hoping for some feedback with deep
insights as to memory footprint. I would expect the HTML support to be
more expensive, but not sure.
Whether or not there's a performance difference, you ought to be using the  
technique that is most convenient/applicable for you.

For our project, programmer convenience comes second to user
friendliness. UI responsiveness is priority #1. But in general, I
agree with you. Premature optimization is pretty evil.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top