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 <[email protected]> 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!
> 
> 

Reply via email to