JDK-4522601 : FlowView should not setParent(null) on views to be re-layed out.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-11-03
  • Updated: 2002-01-08
  • Resolved: 2002-01-08
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
FlowView keeps a layout pool of views that it is responsible for flowing into rows. When its current FlowStrategy lays out, it first calls removeAll() on the FlowView to remove any previous rows. Unfortunately, this removeAll() causes a setParent(null) on the rows which then trickles down to all of the views in the layout pool. This is undesirable since these views are going to be re-used and the setParent(null) can leave them in an inconsistent state (ie. without a parent).

Comments
EVALUATION Views in the layout pool should not have their parent set to null if they are going to be re-flowed. ###@###.### 2001-11-02 This was fixed as 4587627. Closing as a duplicate. ###@###.### 2002-01-08
02-11-2001