pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: PushButton Text Wrap
Date Fri, 18 Mar 2011 12:20:39 GMT
Yes. I thought that ButtonDataRenderer wrapped text by default, but apparently it doesn't.
Easiest thing would be to create a custom subclass of ButtonDataRenderer and call label.getStyles().put("wrapText",
true) in the constructor. Then set this as the renderer for your button.

On Mar 18, 2011, at 1:42 AM, Scott Lanham wrote:

> Hello,
> 
> Sorry if I have asked this in the past. I can't seem to find any old posts 
> about it and my memory is not so good.
> 
> Is it possible to get the text in a PushButton to wrap rather than clip when 
> then text is longer than the button width?
> 
> Thanks,
> 
> Scott.


Mime
View raw message