Re: Setting table row height according the renderer component
- From: RedGrittyBrick <RedGrittyBrick@xxxxxxxxxxxxx>
- Date: Sun, 24 Dec 2006 12:12:05 +0000
noa wrote:
Oliver Wong wrote:"noa" <noah.drach@xxxxxxxxx> wrote in message
news:1166716693.753529.61440@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I thought that a JTextPane wraps automatically, so if i limit it'sYou're confusing the actual width with the preferred width. There's a
width the height is calculated automatically.
I was wrong?
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
I don't understand, what am i supposed to make this work?
- Noa
This looks as if it does what you want ...
http://www.roseindia.net/javatutorials/JTable_in_JDK.shtml
.
- 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
- 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: please help me out
- Next by Date: Re: Setting table row height according the renderer component
- 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
|