Relates :
|
|
Relates :
|
Many components doesn't have a fixed notion of preferredSize. Example is a text component. If you set its width smaller than it is now, it can grow slightly bigger - and this is its current preferred size. Layouts don't work well with such components, see 4446522, 4990877. We must investigate possible extensions to a Component or LayoutManager(2) interfaces to see if anything can be done to legalize such behavior.