JTextPane: find the length of invisible text ?



Hi all,

I'm searching a way to find the length of the text in a JTextPane
before/after the current "getVisibleRect()" . Is there any easy way to
achieve this ?

many thanks

.