• Post Reply Bookmark Topic Watch Topic
  • New Topic

Quick question re. finding actual size of JEditorPane content.  RSS feed

 
Gideon Goodwin
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am setting dynamically generated HTML to a JEditorPane using the String version of JEditorPane.setText(). My JEditorPane is given a default size which is usually too big for the generated HTML content. I would like to find the exact height required to display the content with a given (definite) component width. Is this possible, and if so, what is the best way to do it?

Thanks in advance.
 
Gideon Goodwin
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anybody?
 
Gideon Goodwin
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
still looking for an answer to this one!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!