Re: Setting table row height according the renderer component
- From: "noa" <noah.drach@xxxxxxxxx>
- Date: 24 Dec 2006 07:11:19 -0800
On Dec 24, 2:12 pm, RedGrittyBrick <RedGrittyBr...@xxxxxxxxxxxxx>
wrote:
noa wrote:
Oliver Wong wrote:
"noa" <noah.dr...@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?
- NoaThis looks as if it does what you want ...http://www.roseindia.net/javatutorials/JTable_in_JDK.shtml- Hide quoted text -- Show quoted text -
I know, I've worked with this solution but I need to work with the text
pane because I have styled text...
.
- 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
- Re: Setting table row height according the renderer component
- From: RedGrittyBrick
- Setting table row height according the renderer component
- Prev by Date: Re: Setting table row height according the renderer component
- 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
|