20-CS-694 Advanced Programming Techniques Spring 2012
Questions

Interfaces, Exceptions, Graphics, Animation, Threads, Reflection, Networking, RMI, JDBC, JNI

       Previous     Next     Applet Source     All lectures

Is setMaximumSize meaningful?

Many layout managers don't pay attention to a component's requested maximum size. However, BoxLayout and SpringLayout do. Also, it is possible to use setMaximumSize but not setPreferredSize in which case setMaximumSize makes sense.