You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Le Zhou <le...@gmail.com> on 2011/03/02 13:48:05 UTC

How to set size of chart?

Hi everyone,

How to set size of chart?

Thanks a lot!

Re: How to set size of chart?

Posted by Greg Brown <gk...@verizon.net>.
Correct. You should only call setSize() directly if you are performing layout yourself. Otherwise, call setPreferredSize().

On Mar 2, 2011, at 7:36 PM, Le Zhou wrote:

> Thank you!setSize() doesn't work, but setPreferredSize() works :)
> 
> On Wed, Mar 2, 2011 at 9:11 PM, Greg Brown <gk...@verizon.net> wrote:
> You can set the size of a chart component like any other component - using setSize() (though generally you will probably use a layout container to do this for you).
> 
> On Mar 2, 2011, at 7:48 AM, Le Zhou wrote:
> 
> > Hi everyone,
> >
> > How to set size of chart?
> >
> > Thanks a lot!
> 
> 


Re: How to set size of chart?

Posted by Le Zhou <le...@gmail.com>.
Thank you!setSize() doesn't work, but setPreferredSize() works :)

On Wed, Mar 2, 2011 at 9:11 PM, Greg Brown <gk...@verizon.net> wrote:

> You can set the size of a chart component like any other component - using
> setSize() (though generally you will probably use a layout container to do
> this for you).
>
> On Mar 2, 2011, at 7:48 AM, Le Zhou wrote:
>
> > Hi everyone,
> >
> > How to set size of chart?
> >
> > Thanks a lot!
>
>

Re: How to set size of chart?

Posted by Greg Brown <gk...@verizon.net>.
You can set the size of a chart component like any other component - using setSize() (though generally you will probably use a layout container to do this for you).

On Mar 2, 2011, at 7:48 AM, Le Zhou wrote:

> Hi everyone,
> 
> How to set size of chart?
> 
> Thanks a lot!