counting rows for text wrap in layoutmanager [message #197853] |
Thu, 17 July 2008 22:06 |
Eclipse User |
|
|
|
Originally posted by: kelvinng.db.gmail.com
I wrote my own layout manager, and I enabled text wrap.
Is there some possible way for me to count the number of rows there are
for the text after the text wraps?
~Kelvin Ng
|
|
|
Re: counting rows for text wrap in layoutmanager [message #197861 is a reply to message #197853] |
Thu, 17 July 2008 22:22 |
Eclipse User |
|
|
|
Originally posted by: kelvinng.db.gmail.com
Nevermind!
it seems that WrapLabel's .getSubStringText() seems to print out the
text with new line chracters, so I can count the number of new line
characters.
~Kelvin Ng
On 2008-07-17 18:06:41 -0400, Kelvin Ng <kelvinng.db@gmail.com> said:
> I wrote my own layout manager, and I enabled text wrap.
>
> Is there some possible way for me to count the number of rows there are
> for the text after the text wraps?
>
> ~Kelvin Ng
|
|
|
Powered by
FUDForum. Page generated in 0.02301 seconds