JDK-6215174 : Can't force layout of non-showing component
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2005-01-07
  • Updated: 2011-04-28
Developers need a way to layout a component hierarchy that is not showing. There are multiple reasons they may wish to do this.

For example, consider a developer wanting to create an entire GUI of lightweight Swing components and then render it to an image. This cannot be done since there's no simple way to cause layout to occur. The validate method bails if the component has no peer and validateTree is protected. Please consider fixing validate so that it works when the component is not peered.
###@###.### 2005-1-07 17:45:31 GMT