Re: Setting table row height according the renderer component
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Thu, 21 Dec 2006 14:01:38 -0500
"noa" <noah.drach@xxxxxxxxx> wrote in message
news:1166716693.753529.61440@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I thought that a JTextPane wraps automatically, so if i limit it's
width the height is calculated automatically.
I was wrong?
You're confusing the actual width with the preferred width. There's a
certain size the control *prefers* to be, and in the case of the control you
chose, it's preferred size will be such that no word wrapping occurs. If you
manually set the width, it'll perform word wrapping, but you won't find out
what pixel height is required to display these words by querying the
preferred height.
- Oliver
.
- Follow-Ups:
- References:
- Setting table row height according the renderer component
- From: noah . drach
- Re: Setting table row height according the renderer component
- From: Andrew Thompson
- Re: Setting table row height according the renderer component
- From: Oliver Wong
- Re: Setting table row height according the renderer component
- From: noa
- Re: Setting table row height according the renderer component
- From: Oliver Wong
- Re: Setting table row height according the renderer component
- From: noa
- Setting table row height according the renderer component
- Prev by Date: Re: Setting table row height according the renderer component
- Next by Date: Re: How do i get string representation of a number
- Previous by thread: Re: Setting table row height according the renderer component
- Next by thread: Re: Setting table row height according the renderer component
- Index(es):
Relevant Pages
|
|