Use the set*Size methods, where * means Preferred, Minimum, and Maximum. If that does not work, then post an SSCCE.
...