JDK-5053608 : Should investigate extension to LayoutManagers to support flexible components
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2004-05-27
  • Updated: 2004-08-13
Related Reports
Relates :  
Relates :  
Description
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.