Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What is the difference between setsize and setpreferredsize in swing?

807606Mar 29 2007 — edited Mar 29 2007
Hi,

What is the difference between setsize and setpreferredsize in swing?
It always confuse me and I am wondering why Sun can just give us a "setsize" which is more intuitive.

thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 26 2007
Added on Mar 29 2007
1 comment
1,233 views