Quick question re. finding actual size of JEditorPane content.
posted 12 years ago
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?