A method, computer program product, and data processing system for
facilitating the traversal of a hierarchy of GUI components containing
components and/or containers from disparate GUI toolkits is disclosed. In
a preferred embodiment, auxiliary associative data structures relating
parent components in one toolkit to children in another toolkit are
defined. When examining a component to determine if it has children, an
appropriate associative data structure is consulted to determine if that
component has a child from a disparate toolkit. In accordance with this
preferred embodiment, additional associative data structures are defined,
which also record the reverse "child-parent" relationship, so as to allow
the GUI component tree to be traversed in both directions.